Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / comments.html
blob61a90d7d03baca30147875fe8db861c5d06e13e3
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html>
3 <body>
4 <p>Output of this test should match HTML5 (no strict SGML comment parsing).</p>
6 <script>
7 if (window.testRunner)
8 testRunner.dumpAsText();
9 </script>
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>
19 <p>Dash runs:<br>
20 <!------ Hello -->PASSED
21 <!------ Hello -- >PASSED
22 <!------ Hello -- >PASSED
23 <!------ Hello - - >FAILED
24 <!-- --- Hello -->PASSED
25 <!-- Hello --->PASSED</p>
26 <p>Empty comments:<br>
27 <!---->PASSED
28 <!---- >PASSED
29 <!>PASSED
30 <!-->PASSED
31 <!--->PASSED</p>
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 --
41 >PASSED
42 <!-- here's a comment, a little longer,
43 which occupies more than one line - - >FAILED-->
44 </p>
46 <p>Compatibility:<br>
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-->
56 </p>
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--
62 >PASSED
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>
78 </body>
79 </html>