parser/htmlparser/tests/mochitest/html5lib_tree_construction/comments01.dat

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:39614b83bcdf
1 #data
2 FOO<!-- BAR -->BAZ
3 #errors
4 (1,3): expected-doctype-but-got-chars
5 #document
6 | <html>
7 | <head>
8 | <body>
9 | "FOO"
10 | <!-- BAR -->
11 | "BAZ"
12
13 #data
14 FOO<!-- BAR --!>BAZ
15 #errors
16 (1,3): expected-doctype-but-got-chars
17 (1,15): unexpected-bang-after-double-dash-in-comment
18 #document
19 | <html>
20 | <head>
21 | <body>
22 | "FOO"
23 | <!-- BAR -->
24 | "BAZ"
25
26 #data
27 FOO<!-- BAR -- >BAZ
28 #errors
29 (1,3): expected-doctype-but-got-chars
30 (1,15): unexpected-char-in-comment
31 (1,21): eof-in-comment
32 #document
33 | <html>
34 | <head>
35 | <body>
36 | "FOO"
37 | <!-- BAR -- >BAZ -->
38
39 #data
40 FOO<!-- BAR -- <QUX> -- MUX -->BAZ
41 #errors
42 (1,3): expected-doctype-but-got-chars
43 (1,15): unexpected-char-in-comment
44 (1,24): unexpected-char-in-comment
45 #document
46 | <html>
47 | <head>
48 | <body>
49 | "FOO"
50 | <!-- BAR -- <QUX> -- MUX -->
51 | "BAZ"
52
53 #data
54 FOO<!-- BAR -- <QUX> -- MUX --!>BAZ
55 #errors
56 (1,3): expected-doctype-but-got-chars
57 (1,15): unexpected-char-in-comment
58 (1,24): unexpected-char-in-comment
59 (1,31): unexpected-bang-after-double-dash-in-comment
60 #document
61 | <html>
62 | <head>
63 | <body>
64 | "FOO"
65 | <!-- BAR -- <QUX> -- MUX -->
66 | "BAZ"
67
68 #data
69 FOO<!-- BAR -- <QUX> -- MUX -- >BAZ
70 #errors
71 (1,3): expected-doctype-but-got-chars
72 (1,15): unexpected-char-in-comment
73 (1,24): unexpected-char-in-comment
74 (1,31): unexpected-char-in-comment
75 (1,35): eof-in-comment
76 #document
77 | <html>
78 | <head>
79 | <body>
80 | "FOO"
81 | <!-- BAR -- <QUX> -- MUX -- >BAZ -->
82
83 #data
84 FOO<!---->BAZ
85 #errors
86 (1,3): expected-doctype-but-got-chars
87 #document
88 | <html>
89 | <head>
90 | <body>
91 | "FOO"
92 | <!-- -->
93 | "BAZ"
94
95 #data
96 FOO<!--->BAZ
97 #errors
98 (1,3): expected-doctype-but-got-chars
99 (1,9): incorrect-comment
100 #document
101 | <html>
102 | <head>
103 | <body>
104 | "FOO"
105 | <!-- -->
106 | "BAZ"
107
108 #data
109 FOO<!-->BAZ
110 #errors
111 (1,3): expected-doctype-but-got-chars
112 (1,8): incorrect-comment
113 #document
114 | <html>
115 | <head>
116 | <body>
117 | "FOO"
118 | <!-- -->
119 | "BAZ"
120
121 #data
122 <?xml version="1.0">Hi
123 #errors
124 (1,1): expected-tag-name-but-got-question-mark
125 (1,22): expected-doctype-but-got-chars
126 #document
127 | <!-- ?xml version="1.0" -->
128 | <html>
129 | <head>
130 | <body>
131 | "Hi"
132
133 #data
134 <?xml version="1.0">
135 #errors
136 (1,1): expected-tag-name-but-got-question-mark
137 (1,20): expected-doctype-but-got-eof
138 #document
139 | <!-- ?xml version="1.0" -->
140 | <html>
141 | <head>
142 | <body>
143
144 #data
145 <?xml version
146 #errors
147 (1,1): expected-tag-name-but-got-question-mark
148 (1,13): expected-doctype-but-got-eof
149 #document
150 | <!-- ?xml version -->
151 | <html>
152 | <head>
153 | <body>
154
155 #data
156 FOO<!----->BAZ
157 #errors
158 (1,3): expected-doctype-but-got-chars
159 (1,10): unexpected-dash-after-double-dash-in-comment
160 #document
161 | <html>
162 | <head>
163 | <body>
164 | "FOO"
165 | <!-- - -->
166 | "BAZ"
167
168 #data
169 <html><!-- comment --><title>Comment before head</title>
170 #errors
171 (1,6): expected-doctype-but-got-start-tag
172 #document
173 | <html>
174 | <!-- comment -->
175 | <head>
176 | <title>
177 | "Comment before head"
178 | <body>

mercurial