1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML lang="en">
<HEAD>
<META name="author" content="Ian Hickson">
<META name="copyright" content="© copyright 1999 Ian Hickson">
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META http-equiv="Content-Style-Type" content="text/css">
<TITLE>Evil Tests: Comments</TITLE>
<STYLE TYPE="text/css">
.test { background: purple; color: yellow; font-weight: bolder; padding: 0.3em; border: 3px solid fuchsia; }
.note { font-weight: bolder; color: green; }
</STYLE>
</HEAD>
<BODY>
<H1>Comments</H1>
<p>If you have any comments to make regarding this test, e-mail <a
href="mailto:py8ieh=eviltests-comments@bath.ac.uk">py8ieh=eviltests@bath.ac.uk</a>.</p>
<dl>
<dt>Prerequisites</dt>
<dd>Browsers that are subjected to this test should support the
SGML comments: <code><!-- -- -- --></code>.</dd>
</dl>
<h2>1. The comment delimited is <code>--</code></h2>
<p class="note">Note that there are four (4) sub-tests to this
section. Because of the nature of these tests, some may not appear. If
so, there is a bug. I repeat: there should be four separate tests in
section 1! Each consists of a bit of explanatory text, a purple box
with yellow text, and some explanatory markup.</p>
<P>The comment delimiter is <code>--</code>, not <code><!--</code>
and <code>--></code>. In the following sentence, the word
<q>INCORRECTLY</q> should not appear:</P>
<P class=test>This browser parses comments <!-- -- -->
INCORRECTLY! Yes, I said in<!-- -- -->correctly.</P>
<!-- -->
<P>The markup used was:</P>
<PRE>
<P>This browser parses comments <!-- -- --> INCORRECTLY!
Yes, I said in<!-- -- -->correctly.</P>
</PRE>
<P>If you take <code>--</code> to be the comment delimiter, you can
easily see that the words in the middle are actually inside a
comment.</P>
<P>Here is another:</P>
<P class=test>This browser parses comments
<!---- -->INCORRECTLY! Yes, I said in<!------>correctly.</P>
<P>The markup used was:</P>
<PRE>
<P>This browser parses comments
<!---- -->INCORRECTLY! Yes, I said in<!------>correctly.</P>
</PRE>
<p>Note that it is a serious error if this is the paragraph
immediately after the test line! There should be some commentary
(including a snippet of the source of the last test) between this
paragraph and the previous test.</p>
<P>Here is yet another:</P>
<P class=test>This browser parses comments
<!------>INCORRECTLY! Yes, I said in<!------>correctly.</P>
<P>The markup used was:</P>
<PRE>
<P>This browser parses comments
<!------>INCORRECTLY! Yes, I said in<!------>correctly.</P>
</PRE>
<p>Note that it is a serious error if this is the paragraph
immediately after the test line! There should be some commentary
(including a snippet of the source of the last test) between this
paragraph and the previous test.</p>
<P>And finally, here is yet another. Hopefully that should cover all bases...</P>
<P class=test>This browser parses comments
<!-- ---->INCORRECTLY! Yes, I said in<!------>correctly.</P>
<P>The markup used was:</P>
<PRE>
<P>This browser parses comments
<!-- ---->INCORRECTLY! Yes, I said in<!------>correctly.</P>
</PRE>
<p>Note that it is a serious error if this is the paragraph
immediately after the test line! There should be some commentary
(including a snippet of the source of the last test) between this
paragraph and the previous test.</p>
<h2>2. Comments should not mess up whitespace collapsing!</h2>
<P>In the following, the words should not be spaced out any more than normal.</P>
<P class=test>These words are not separated by comments. They <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> should <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> be <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> spaced <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> out <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> as
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> much <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> as <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> these <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- -->
<!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!-- --> <!--
--> <!-- --> <!-- --> words.</P>
<h2>3. Comment Terminator</h2>
<P>The comment delimiter is <code>--</code>, so the end delimited is
certainly not <code>-></code>. In the following sentence, the word
<q>INCORRECTLY</q> should not appear:</P>
<P class=test>This browser parses comments <!-- ->
INCORRECTLY! Yes, I said in<!- -->correctly.</P>
<P>The markup used was:</P>
<PRE>
<P>This browser parses comments <!-- -> INCORRECTLY!
Yes, I said in<!- -->correctly.</P>
</PRE>
<P>If you take <code>--</code> to be the comment delimiter, you can
easily see that the words in the middle are actually inside a
comment.</P>
<h2>Submit Results</h2>
<FORM action="/%7Epy8ieh/cgi/newresult.pl" method="POST" class="resultsubmission">
<P>How does your browser fare on this test?
<SELECT NAME="result">
<OPTION VALUE="Y"> The three tests are correctly parsed. </OPTION>
<OPTION VALUE="B"> Some of the tests are incorrectly parsed. </OPTION>
<OPTION VALUE="D"> Large parts of the document are missing. </OPTION>
</SELECT>
<LABEL>Comment: <INPUT TYPE="text" NAME="comment"></LABEL>
<INPUT TYPE="submit" VALUE="Submit">
</P>
</FORM>
<HR title="Footer">
<p><a href="home.html">Up to the Evil Tests Page</A>.</p>
<P>Bugzilla: <a href="http://bugzilla.mozilla.org/show_bug.cgi?id=2749">Bug 2749</A> (parsing errors - reported fixed, awaiting strict DTD mode to verify) ; <a href="http://bugzilla.mozilla.org/show_bug.cgi?id=3304">Bug 3304</A> (page does not display)</P>
<p>This page is maintained by <a class=External HREF="http://www.bath.ac.uk/%7Epy8ieh/">Ian Hickson</A> (<a class=Mail HREF="mailto:py8ieh=website@bath.ac.uk">py8ieh@bath.ac.uk</A>).</p>
<p>Last updated in January 1999.</p>
</BODY></HTML>
|