1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <p>Output of this test should match HTML5 (no strict SGML comment parsing).
</p>
8 testRunner
.dumpAsText();
10 <p>Basic comments:
<br>
11 <!-- basic comment -->PASSED
12 <!-- basic comment with spaces after comment end -- >PASSED
13 <!-- basic comment with spaces after comment end - - >FAILED--></p>
14 <p>Comment series:
<br>
15 <!-- comment -- -- series-->PASSED
16 <!-- comment -- -- series with space after comment end-- >PASSED
17 <!-- comment -- -- series with spaces after comment end-- >PASSED</p>
18 <!-- comment -- -- series with spaces after comment end- - >FAILED--></p>
20 <!------ Hello -->PASSED
21 <!------ Hello -- >PASSED
22 <!------ Hello -- >PASSED
23 <!------ Hello - - >FAILED
24 <!-- --- Hello -->PASSED
25 <!-- Hello --->PASSED
</p>
26 <p>Empty comments:
<br>
32 <p>Multiple lines:<br>
33 <!-- here's a comment, a little longer,
34 which occupies more than one line -->PASSED
35 <!-- here's a comment, a little longer,
36 which occupies more than one line -- >PASSED
37 <!-- here's a comment, a little longer,
38 which occupies more than one line -- >PASSED
39 <!-- here's a comment, a little longer,
40 which occupies more than one line --
42 <!-- here's a comment, a little longer,
43 which occupies more than one line - - >FAILED-->
47 <!-- Compatibility: comment series with --extraneous-- text -- between -- the comments -->PASSED
48 <!-- Compatibility: comment series with --extraneous-- text -- between -- the comments -- >PASSED
49 <!-- Compatibility: comment series with --extraneous-- text -- between -- the comments -- >PASSED
50 <!-- Compatibility: comment series with --extraneous-- text -- between -- the comments - - >FAILED-->
51 <!-- Compatibility: <!--extra comment start like www.the-leaky-cauldron.com has <rdar://problem/4226539>-->PASSED
52 <!-- Compatibility: <!--extra comment start like www.the-leaky-cauldron.com has <rdar://problem/4226539>-- >PASSED
53 <!-- Compatibility: <!--extra comment start like www.the-leaky-cauldron.com has <rdar://problem/4226539> -- >PASSED
54 <!-- Compatibility: <!--extra comment start like www.the-leaky-cauldron.com has <rdar://problem/4226539> -- >PASSED
55 <!-- Compatibility: <!--extra comment start like www.the-leaky-cauldron.com has <rdar://problem/4226539> - - >FAILED-->
58 <p>White space after comment close:
<br>
59 <!-- tab after comment close-- >PASSED
60 <!-- LF after comment close--\f>PASSED
61 <!-- CR after comment close--
63 <!-- tab after comment close-- >PASSED</p>
66 <p>Text after comment close:<br>
67 <!-- text after comment close--ouch>FAILED: should be part of the comment --></p>
70 <p>Extra comment after markup declaration close:
<br>
71 <!-- Comment --> FAILED: extra comment end and markup declaration close -->
<br>
72 <!-- Comment with a whitespace in markup declaration close -- >PASSED
73 <!-- Comment with a whitespace in markup declaration close -- >PASSED</p>
75 <p>Nested comment:<br>
76 <!-- nested: <!--FAILED (inner comment)--> PASSED (outer nested comment) -->
</p>