/[suikacvs]/markup/html/whatpm/t/tree-construction-result.txt
Suika

Contents of /markup/html/whatpm/t/tree-construction-result.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download)
Sat Jun 23 03:53:35 2007 UTC (18 years ago) by wakaba
Branch: MAIN
Changes since 1.10: +366 -359 lines
File MIME type: text/plain
++ whatpm/t/ChangeLog	23 Jun 2007 03:51:41 -0000
	* tokenizer-test-2.dat: New test.  This test file contains
	some tests that cannot be reliably tested by |HTML-tokenize.t|,
	since they depends on how characeters are supplied to the
	tokenizer.

	* HTML-tree.t: |tokenizer-test-2.dat| added.  |#data escaped|
	etc. supported.

2007-06-23  Wakaba  <wakaba@suika.fam.cx>

1 wakaba 1.6 1..472
2 wakaba 1.1 # Running under perl version 5.008007 for linux
3 wakaba 1.11 # Current time local: Sat Jun 23 12:46:57 2007
4     # Current time GMT: Sat Jun 23 03:46:57 2007
5 wakaba 1.1 # Using Test.pm version 1.25
6     ok 1
7 wakaba 1.11 not ok 2
8     # Test 2 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <title>\n| <body>\n| <p>\n| \"\x{FFFD}\"\n" (t/HTML-tree.t at line 134)
9     # Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <title>\n| <body>\n| <p>\n| \"\x{FFFD}\"\n" (Document tree: <!DOCTYPE html><html><head><title></title></head><body><p></p></body>)
10     # Line 1 is changed:
11     # - "| <!DOCTYPE html>\n"
12     # + "| <!DOCTYPE HTML>\n"
13     # t/HTML-tree.t line 134 is: ok $result, $test->{document}, 'Document tree: ' . $test->{data};
14 wakaba 1.1 ok 3
15     ok 4
16     ok 5
17     ok 6
18     ok 7
19 wakaba 1.11 ok 8
20     ok 9
21 wakaba 1.1 not ok 10
22 wakaba 1.11 # Test 10 got: "| <html>\n" (t/HTML-tree.t at line 134 fail #5)
23     # Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: <html>)
24     # Lines 2-2 are missing:
25     # - "| <head>\n"
26     # - "| <body>\n"
27     not ok 11
28     # Test 11 got: "2" (t/HTML-tree.t at line 132 fail #6)
29     # Expected: "1" (Parse error: <head>; 1:6:missing DOCTYPE, 1:6:not closed:head;6: missing document type declaration)
30     # t/HTML-tree.t line 132 is: join (', ', @errors) . ';' . join (', ', @{$test->{errors}});
31     not ok 12
32     # Test 12 got: "| <html>\n| <head>\n" (t/HTML-tree.t at line 134 fail #6)
33 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: <head>)
34     # Line 3 is missing:
35     # - "| <body>\n"
36 wakaba 1.11 ok 13
37     ok 14
38     not ok 15
39     # Test 15 got: "2" (t/HTML-tree.t at line 132 fail #8)
40 wakaba 1.1 # Expected: "1" (Parse error: <html><head>; 1:7:missing DOCTYPE, 1:12:not closed:head;6: missing document type declaration)
41 wakaba 1.11 not ok 16
42     # Test 16 got: "| <html>\n| <head>\n" (t/HTML-tree.t at line 134 fail #8)
43 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: <html><head>)
44     # Line 3 is missing:
45     # - "| <body>\n"
46 wakaba 1.11 ok 17
47     not ok 18
48     # Test 18 got: "| <html>\n| <head>\n" (t/HTML-tree.t at line 134 fail #9)
49 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: <html><head></head>)
50     # Line 3 is missing:
51     # - "| <body>\n"
52     ok 19
53     ok 20
54     ok 21
55     ok 22
56     ok 23
57     ok 24
58     ok 25
59     ok 26
60     ok 27
61     ok 28
62     ok 29
63     ok 30
64     ok 31
65     ok 32
66     ok 33
67 wakaba 1.11 ok 34
68     ok 35
69     not ok 36
70     # Test 36 got: "| <html>\n" (t/HTML-tree.t at line 134 fail #18)
71 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: </head>)
72     # Lines 2-2 are missing:
73     # - "| <head>\n"
74     # - "| <body>\n"
75 wakaba 1.11 ok 37
76     not ok 38
77     # Test 38 got: "| <html>\n" (t/HTML-tree.t at line 134 fail #19)
78 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: </body>)
79     # Lines 2-2 are missing:
80     # - "| <head>\n"
81     # - "| <body>\n"
82     ok 39
83     ok 40
84     ok 41
85     ok 42
86 wakaba 1.11 ok 43
87     ok 44
88     not ok 45
89     # Test 45 got: "3" (t/HTML-tree.t at line 132 fail #23)
90 wakaba 1.8 # Expected: "2" (Parse error: <h1>Hello<h2>World; 1:5:missing DOCTYPE, 1:14:in hn:hn, 1:18:not closed:h2;4: missing document type declaration, 19: mismatched body element end tag (premature end of file?))
91 wakaba 1.11 not ok 46
92     # Test 46 got: "| <html>\n| <head>\n| <body>\n| <h1>\n| \"Hello\"\n| <h2>\n| \"World\"\n" (t/HTML-tree.t at line 134 fail #23)
93 wakaba 1.8 # Expected: "| <html>\n| <head>\n| <body>\n| <h1>\n| \"Hello\"\n| <h2>\n| \"World\"\n" (Document tree: <h1>Hello<h2>World)
94     # Lines 6-7 are changed:
95     # - "| <h2>\n"
96     # + "| <h2>\n"
97     # - "| \"World\"\n"
98     # + "| \"World\"\n"
99 wakaba 1.1 ok 47
100     ok 48
101     ok 49
102     ok 50
103     ok 51
104     ok 52
105 wakaba 1.11 ok 53
106     ok 54
107     not ok 55
108     # Test 55 got: "2" (t/HTML-tree.t at line 132 fail #28)
109 wakaba 1.8 # Expected: "4" (Parse error: <!--><div>--<!-->; 1:13:dash in comment, 1:17:missing DOCTYPE;Incorrect comment token, Missing document type declaration, Incorrect comment token, Unexpected end of file)
110 wakaba 1.11 not ok 56
111     # Test 56 got: "| <!-- ><div>--<! -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #28)
112 wakaba 1.8 # Expected: "| <!-- -->\n| <html>\n| <head>\n| <body>\n| <div>\n| \"--\"\n| <!-- -->\n" (Document tree: <!--><div>--<!-->)
113     # Line 1 is changed:
114     # - "| <!-- -->\n"
115     # + "| <!-- ><div>--<! -->\n"
116 wakaba 1.1 # Lines 3-3 are missing:
117     # - "| <head>\n"
118     # - "| <body>\n"
119 wakaba 1.8 # - "| <div>\n"
120     # - "| \"--\"\n"
121     # - "| <!-- -->\n"
122 wakaba 1.1 ok 57
123     ok 58
124     ok 59
125     ok 60
126     ok 61
127     ok 62
128 wakaba 1.11 ok 63
129 wakaba 1.1 ok 64
130     not ok 65
131 wakaba 1.11 # Test 65 got: "17" (t/HTML-tree.t at line 132 fail #33)
132     # Expected: "9" (Parse error: <!-----><font><div>hello<table>excite!<b>me!<th><i>please!</tr><!--X-->; 1:7:dash in comment, 1:9:missing DOCTYPE, 1:33:in table:#character, 1:34:in table:#character, 1:35:in table:#character, 1:36:in table:#character, 1:37:in table:#character, 1:38:in table:#character, 1:39:in table:#character, 1:42:in table:b, 1:43:in table:#character, 1:44:in table:#character, 1:45:in table:#character, 1:49:not closed:b, 1:49:missing start tag:tr, 1:64:not closed:i, 1:71:not closed:tbody;7: unexpected '-' character after two '-' characters while parsing comment, 14: missing document type declaration, 40: unexpected node in table context, 41: unexpected node in table context, 46: unexpected node in table context, 48: required tr element start tag implied by unexpected th element start tag, 63: unexpected th element end tag implied other end tags, 72: unexpected end of file implied table element end tag, 72: mismatched body element end tag (premature end of file?))
133     ok 66
134     not ok 67
135     # Test 67 got: "2" (t/HTML-tree.t at line 132 fail #34)
136 wakaba 1.1 # Expected: "0" (Parse error: <!DOCTYPE HTML><li>hello<li>world<ul>how<li>do</ul>you</body><!--do-->; 1:62:not closed:li, 1:70:after body:/li;)
137     ok 68
138     ok 69
139     ok 70
140     ok 71
141     ok 72
142     ok 73
143     ok 74
144     ok 75
145 wakaba 1.11 ok 76
146 wakaba 1.1 ok 77
147     not ok 78
148 wakaba 1.11 # Test 78 got: "| <!-- # -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #39)
149     # Expected: "| <!-- # -->\n| <html>\n| <head>\n| <body>\n" (Document tree: </#)
150 wakaba 1.1 # Lines 3-3 are missing:
151     # - "| <head>\n"
152     # - "| <body>\n"
153     ok 79
154     not ok 80
155 wakaba 1.11 # Test 80 got: "| <!-- ? -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #40)
156     # Expected: "| <!-- ? -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <?)
157 wakaba 1.1 # Lines 3-3 are missing:
158     # - "| <head>\n"
159     # - "| <body>\n"
160     ok 81
161     not ok 82
162 wakaba 1.11 # Test 82 got: "| <!-- ?# -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #41)
163     # Expected: "| <!-- ?# -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <?#)
164 wakaba 1.1 # Lines 3-3 are missing:
165     # - "| <head>\n"
166     # - "| <body>\n"
167     ok 83
168     not ok 84
169 wakaba 1.11 # Test 84 got: "| <!-- -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #42)
170     # Expected: "| <!-- -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!)
171 wakaba 1.1 # Lines 3-3 are missing:
172     # - "| <head>\n"
173     # - "| <body>\n"
174     ok 85
175     not ok 86
176 wakaba 1.11 # Test 86 got: "| <!-- # -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #43)
177     # Expected: "| <!-- # -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!#)
178 wakaba 1.1 # Lines 3-3 are missing:
179     # - "| <head>\n"
180     # - "| <body>\n"
181     ok 87
182     not ok 88
183 wakaba 1.11 # Test 88 got: "| <!-- ?COMMENT? -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #44)
184     # Expected: "| <!-- ?COMMENT? -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <?COMMENT?>)
185 wakaba 1.1 # Lines 3-3 are missing:
186     # - "| <head>\n"
187     # - "| <body>\n"
188     ok 89
189     not ok 90
190 wakaba 1.11 # Test 90 got: "| <!-- COMMENT -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #45)
191     # Expected: "| <!-- COMMENT -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!COMMENT>)
192 wakaba 1.1 # Lines 3-3 are missing:
193     # - "| <head>\n"
194     # - "| <body>\n"
195     ok 91
196     not ok 92
197 wakaba 1.11 # Test 92 got: "| <!-- COMMENT -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #46)
198     # Expected: "| <!-- COMMENT -->\n| <html>\n| <head>\n| <body>\n" (Document tree: </ COMMENT >)
199 wakaba 1.1 # Lines 3-3 are missing:
200     # - "| <head>\n"
201     # - "| <body>\n"
202     ok 93
203     not ok 94
204 wakaba 1.11 # Test 94 got: "| <!-- ?COM--MENT? -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #47)
205     # Expected: "| <!-- ?COM--MENT? -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <?COM--MENT?>)
206 wakaba 1.1 # Lines 3-3 are missing:
207     # - "| <head>\n"
208     # - "| <body>\n"
209     ok 95
210     not ok 96
211 wakaba 1.11 # Test 96 got: "| <!-- COM--MENT -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #48)
212     # Expected: "| <!-- COM--MENT -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!COM--MENT>)
213     # Lines 3-3 are missing:
214     # - "| <head>\n"
215     # - "| <body>\n"
216     ok 97
217     not ok 98
218     # Test 98 got: "| <!-- COM--MENT -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #49)
219 wakaba 1.1 # Expected: "| <!-- COM--MENT -->\n| <html>\n| <head>\n| <body>\n" (Document tree: </ COM--MENT >)
220     # Lines 3-3 are missing:
221     # - "| <head>\n"
222     # - "| <body>\n"
223 wakaba 1.11 not ok 99
224     # Test 99 got: "2" (t/HTML-tree.t at line 132 fail #50)
225 wakaba 1.1 # Expected: "1" (Parse error: <!DOCTYPE HTML><style> EOF; 1:26:in CDATA:#end-of-file, 1:26:not closed:head;27: unexpected end of file while parsing CDATA section for element style)
226 wakaba 1.8 not ok 100
227 wakaba 1.11 # Test 100 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <style>\n| \" EOF\"\n" (t/HTML-tree.t at line 134 fail #50)
228     # Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <style>\n| \" EOF\"\n| <body>\n" (Document tree: <!DOCTYPE HTML><style> EOF)
229     # Line 6 is missing:
230     # - "| <body>\n"
231     ok 101
232     not ok 102
233     # Test 102 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <script>\n| \" <!-- \"\n| \" \"\n| <body>\n| \"--> EOF\"\n" (t/HTML-tree.t at line 134 fail #51)
234 wakaba 1.8 # Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <script>\n| \" <!-- </script> --> \"\n| \" \"\n| <body>\n| \"EOF\"\n" (Document tree: <!DOCTYPE HTML><script> <!-- </script> --> </script> EOF)
235     # Line 5 is changed:
236     # - "| \" <!-- </script> --> \"\n"
237     # + "| \" <!-- \"\n"
238     # Line 8 is changed:
239     # - "| \"EOF\"\n"
240     # + "| \"--> EOF\"\n"
241 wakaba 1.1 ok 103
242     ok 104
243     ok 105
244     ok 106
245     ok 107
246     ok 108
247     ok 109
248     ok 110
249     ok 111
250     ok 112
251     ok 113
252     ok 114
253     ok 115
254     ok 116
255     ok 117
256     ok 118
257     ok 119
258     ok 120
259     ok 121
260     ok 122
261     ok 123
262 wakaba 1.11 ok 124
263     ok 125
264     not ok 126
265     # Test 126 got: "| <html>\n" (t/HTML-tree.t at line 134 fail #63)
266 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: )
267     # Lines 2-2 are missing:
268     # - "| <head>\n"
269     # - "| <body>\n"
270     ok 127
271     ok 128
272     ok 129
273     ok 130
274     ok 131
275     ok 132
276     ok 133
277     ok 134
278     ok 135
279     ok 136
280     ok 137
281     ok 138
282     ok 139
283     ok 140
284     ok 141
285     ok 142
286     ok 143
287     ok 144
288     ok 145
289     ok 146
290     ok 147
291     ok 148
292     ok 149
293     ok 150
294     ok 151
295     ok 152
296     ok 153
297     ok 154
298 wakaba 1.11 ok 155
299     ok 156
300     not ok 157
301     # Test 157 got: "10" (t/HTML-tree.t at line 132 fail #79)
302 wakaba 1.1 # Expected: "8" (Parse error: <a href="blah">aba<table><a href="foo">br<tr><td></td></tr>x</table>aoe; 1:16:missing DOCTYPE, 1:40:in table:a, 1:40:in a:a, 1:40:unmatched end tag:a, 1:41:in table:#character, 1:42:in table:#character, 1:46:not closed:a, 1:61:in table:#character, 1:69:not closed:a, 1:71:not closed:a;15: missing document type declaration, 39: unexpected node in table context, 39: a element start tag implying a element end tag, 39: unexpected node in table context, 39: mismatched a element end tag (misnested tags across <table> tag), 43: unexpected node in table context, 63: unexpected node in table context, 72: mismatched body element end tag (premature end of file?))
303     ok 158
304 wakaba 1.11 ok 159
305     ok 160
306     not ok 161
307     # Test 161 got: "10" (t/HTML-tree.t at line 132 fail #81)
308 wakaba 1.1 # Expected: "6" (Parse error: <table><a href="blah">aba<tr><td><a href="foo">br</td></tr>x</table>aoe; 1:8:missing DOCTYPE, 1:23:in table:a, 1:24:in table:#character, 1:25:in table:#character, 1:26:in table:#character, 1:30:not closed:a, 1:55:not closed:a, 1:61:in table:#character, 1:69:not closed:a, 1:71:not closed:a;7: missing document type declaration, 22: unexpected node in table context, 27: unexpected node in table context, 54: unexpected td element end tag implied other end tags, 63: unexpected node in table context, 72: mismatched body element end tag (premature end of file?))
309     ok 162
310     ok 163
311     ok 164
312 wakaba 1.11 ok 165
313     ok 166
314     not ok 167
315     # Test 167 got: "2" (t/HTML-tree.t at line 132 fail #84)
316 wakaba 1.1 # Expected: "1" (Parse error: <title><meta></title><link><title><meta></title>; 1:8:missing DOCTYPE, 1:48:not closed:head;7: missing document type declaration)
317 wakaba 1.11 not ok 168
318     # Test 168 got: "| <html>\n| <head>\n| <title>\n| \"<meta>\"\n| <link>\n| <title>\n| \"<meta>\"\n" (t/HTML-tree.t at line 134 fail #84)
319 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <title>\n| \"<meta>\"\n| <link>\n| <title>\n| \"<meta>\"\n| <body>\n" (Document tree: <title><meta></title><link><title><meta></title>)
320     # Line 8 is missing:
321     # - "| <body>\n"
322 wakaba 1.11 ok 169
323     not ok 170
324     # Test 170 got: "| <html>\n| <head>\n| <style>\n| \"<!--\"\n| <meta>\n| <script>\n| \"--><link>\"\n" (t/HTML-tree.t at line 134 fail #85)
325 wakaba 1.8 # Expected: "| <html>\n| <head>\n| <style>\n| \"<!--</style><meta><script>--><link></script>\"\n| <body>\n" (Document tree: <style><!--</style><meta><script>--><link></script>)
326     # Lines 4-5 are changed:
327     # - "| \"<!--</style><meta><script>--><link></script>\"\n"
328     # + "| \"<!--\"\n"
329 wakaba 1.1 # - "| <body>\n"
330 wakaba 1.8 # + "| <meta>\n"
331     # Got 2 extra lines at line 6:
332     # + "| <script>\n"
333     # + "| \"--><link>\"\n"
334 wakaba 1.11 ok 171
335     not ok 172
336     # Test 172 got: "| <html>\n| <head>\n| <meta>\n| <link>\n" (t/HTML-tree.t at line 134 fail #86)
337 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <meta>\n| <link>\n| <body>\n" (Document tree: <head><meta></head><link>)
338     # Line 5 is missing:
339     # - "| <body>\n"
340 wakaba 1.11 ok 173
341     ok 174
342     not ok 175
343     # Test 175 got: "9" (t/HTML-tree.t at line 132 fail #88)
344 wakaba 1.1 # Expected: "7" (Parse error: <body><body><base><link><meta><title><p></title><body><p></body>; 1:7:missing DOCTYPE, 1:13:in body:body, 1:19:in body:base, 1:25:in body:link, 1:31:in body:meta, 1:38:in body:title, 1:55:in body:body, 1:64:not closed:p, 1:64:after body:/p;6: missing document type declaration, 12: unexpected body element start tag, 18: base element start tag out of place, 24: link element start tag out of place, 30: meta element start tag out of place, 37: title element start tag out of place, 54: unexpected body element start tag)
345 wakaba 1.11 not ok 176
346     # Test 176 got: "| <html>\n| <head>\n| <base>\n| <link>\n| <meta>\n| <title>\n| \"<p>\"\n| <body>\n| <p>\n" (t/HTML-tree.t at line 134 fail #88)
347 wakaba 1.8 # Expected: "| <html>\n| <head>\n| <title>\n| \"<p>\"\n| <body>\n| <base>\n| <link>\n| <meta>\n| <p>\n" (Document tree: <body><body><base><link><meta><title><p></title><body><p></body>)
348     # Got 3 extra lines at line 3:
349     # + "| <base>\n"
350     # + "| <link>\n"
351     # + "| <meta>\n"
352     # Lines 9-9 are missing:
353     # - "| <base>\n"
354     # - "| <link>\n"
355     # - "| <meta>\n"
356 wakaba 1.1 ok 177
357     ok 178
358 wakaba 1.11 ok 179
359     ok 180
360     not ok 181
361     # Test 181 got: "11" (t/HTML-tree.t at line 132 fail #91)
362 wakaba 1.1 # Expected: "12" (Parse error: <a><table><a></table><p><a><div><a>; 1:4:missing DOCTYPE, 1:14:in table:a, 1:14:in a:a, 1:14:unmatched end tag:a, 1:22:not closed:a, 1:28:in a:a, 1:28:unmatched end tag:a, 1:33:not closed:a, 1:35:in a:a, 1:35:unmatched end tag:a, 1:35:not closed:a;3: missing document type declaration, 13: unexpected node in table context, 13: a element start tag implying a element end tag, 13: unexpected node in table context, 13: mismatched a element end tag (misnested tags across <table> tag), 21: mismatched table element end tag, 27: a element start tag implying a element end tag, 27: mismatched a element end tag (out-of-order end tags), 32: mismatched p element end tag, 35: a element start tag implying a element end tag, 35: mismatched a element end tag (out-of-order end tags), 36: mismatched body element end tag (premature end of file?))
363     ok 182
364 wakaba 1.11 ok 183
365     ok 184
366     not ok 185
367     # Test 185 got: "4" (t/HTML-tree.t at line 132 fail #93)
368 wakaba 1.8 # Expected: "3" (Parse error: <head></html><meta><p>; 1:7:missing DOCTYPE, 1:20:after html:meta, 1:20:after body:meta, 1:20:in body:meta;6: missing document type declaration, 19: unexpected node at end of document, 19: unexpected node after body element end tag)
369 wakaba 1.11 not ok 186
370     # Test 186 got: "| <html>\n| <head>\n| <meta>\n| <body>\n| <p>\n" (t/HTML-tree.t at line 134 fail #93)
371 wakaba 1.8 # Expected: "| <html>\n| <head>\n| <body>\n| <meta>\n| <p>\n" (Document tree: <head></html><meta><p>)
372     # Got 1 extra line at line 3:
373     # + "| <meta>\n"
374     # Line 5 is missing:
375     # - "| <meta>\n"
376 wakaba 1.1 ok 187
377     ok 188
378 wakaba 1.11 ok 189
379     ok 190
380     not ok 191
381     # Test 191 got: "3" (t/HTML-tree.t at line 132 fail #96)
382 wakaba 1.8 # Expected: "2" (Parse error: <h1><h2>; 1:5:missing DOCTYPE, 1:8:in hn:hn, 1:8:not closed:h2;4: missing document type declaration, 9: mismatched body element end tag (premature end of file?))
383 wakaba 1.11 not ok 192
384     # Test 192 got: "| <html>\n| <head>\n| <body>\n| <h1>\n| <h2>\n" (t/HTML-tree.t at line 134 fail #96)
385 wakaba 1.8 # Expected: "| <html>\n| <head>\n| <body>\n| <h1>\n| <h2>\n" (Document tree: <h1><h2>)
386     # Line 5 is changed:
387     # - "| <h2>\n"
388     # + "| <h2>\n"
389 wakaba 1.1 ok 193
390     ok 194
391     ok 195
392     ok 196
393     ok 197
394     ok 198
395     ok 199
396     ok 200
397     ok 201
398     ok 202
399     ok 203
400     ok 204
401     ok 205
402     ok 206
403 wakaba 1.11 ok 207
404     ok 208
405     not ok 209
406     # Test 209 got: "4" (t/HTML-tree.t at line 132 fail #105)
407 wakaba 1.9 # Expected: "2" (Parse error: <ul><li></li><div><li></div><li><li><div><li><address><li><b><em></b><li></ul>; 1:5:missing DOCTYPE, 1:46:end tag missing:div, 1:59:end tag missing:address, 1:70:not closed:em;4: missing document type declaration, 69: mismatched b element end tag (misnested tags))
408 wakaba 1.1 ok 210
409     ok 211
410     ok 212
411 wakaba 1.11 ok 213
412     ok 214
413     not ok 215
414     # Test 215 got: "5" (t/HTML-tree.t at line 132 fail #108)
415 wakaba 1.8 # Expected: "4" (Parse error: <h1><table><td><h3></table><h3></h1>; 1:5:missing DOCTYPE, 1:16:missing start tag:tr, 1:28:not closed:h3, 1:32:in hn:hn, 1:36:not closed:h3;4: missing document type declaration, 15: required tr element start tag implied by unexpected td element start tag, 27: unexpected td element end tag implied other end tags, Unexpected EOF)
416 wakaba 1.11 not ok 216
417     # Test 216 got: "| <html>\n| <head>\n| <body>\n| <h1>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <h3>\n| <h3>\n" (t/HTML-tree.t at line 134 fail #108)
418 wakaba 1.8 # Expected: "| <html>\n| <head>\n| <body>\n| <h1>\n| <table>\n| <tbody>\n| <tr>\n| <td>\n| <h3>\n| <h3>\n" (Document tree: <h1><table><td><h3></table><h3></h1>)
419     # Line 10 is changed:
420     # - "| <h3>\n"
421     # + "| <h3>\n"
422 wakaba 1.1 ok 217
423     ok 218
424     ok 219
425     ok 220
426     ok 221
427 wakaba 1.11 ok 222
428     ok 223
429     not ok 224
430     # Test 224 got: "| <html>\n| <head>\n| <body>\n" (t/HTML-tree.t at line 134 fail #112)
431 wakaba 1.8 # Expected: "| <html>\n| <head>\n| <body>\n| <br>\n" (Document tree: </strong></b></em></i></u></strike></s></blink></tt></pre></big></small></font></select></h1></h2></h3></h4></h5></h6></body></br></a></img></title></span></style></script></table></th></td></tr></frame></area></link></param></hr></input></col></base></meta></basefont></bgsound></embed></spacer></p></dd></dt></caption></colgroup></tbody></tfoot></thead></address></blockquote></center></dir></div></dl></fieldset></listing></menu></ol></ul></li></nobr></wbr></form></button></marquee></object></html></frameset></head></iframe></image></isindex></noembed></noframes></noscript></optgroup></option></plaintext></textarea>)
432     # Line 4 is missing:
433     # - "| <br>\n"
434 wakaba 1.11 not ok 225
435     # Test 225 got: "112" (t/HTML-tree.t at line 132 fail #113)
436 wakaba 1.1 # Expected: "109" (Parse error: <table><tr></strong></b></em></i></u></strike></s></blink></tt></pre></big></small></font></select></h1></h2></h3></h4></h5></h6></body></br></a></img></title></span></style></script></table></th></td></tr></frame></area></link></param></hr></input></col></base></meta></basefont></bgsound></embed></spacer></p></dd></dt></caption></colgroup></tbody></tfoot></thead></address></blockquote></center></dir></div></dl></fieldset></listing></menu></ol></ul></li></nobr></wbr></form></button></marquee></object></html></frameset></head></iframe></image></isindex></noembed></noframes></noscript></optgroup></option></plaintext></textarea>; 1:8:missing DOCTYPE, 1:21:in table:strong, 1:21:unmatched end tag:strong, 1:25:in table:b, 1:25:unmatched end tag:b, 1:30:in table:em, 1:30:unmatched end tag:em, 1:34:in table:i, 1:34:unmatched end tag:i, 1:38:in table:u, 1:38:unmatched end tag:u, 1:47:in table:strike, 1:47:not closed:tr, 1:51:in table:s, 1:51:unmatched end tag:s, 1:59:in table:blink, 1:59:not closed:tr, 1:64:in table:tt, 1:64:unmatched end tag:tt, 1:70:in table:pre, 1:70:not closed:tr, 1:76:in table:big, 1:76:unmatched end tag:big, 1:84:in table:small, 1:84:unmatched end tag:small, 1:91:in table:font, 1:91:unmatched end tag:font, 1:100:in table:select, 1:100:unmatched end tag:select, 1:105:in table:h1, 1:105:not closed:tr, 1:110:in table:h2, 1:110:not closed:tr, 1:115:in table:h3, 1:115:not closed:tr, 1:120:in table:h4, 1:120:not closed:tr, 1:125:in table:h5, 1:125:not closed:tr, 1:130:in table:h6, 1:130:not closed:tr, 1:137:unmatched end tag:body, 1:142:in table:br, 1:142:unmatched end tag:br, 1:146:in table:a, 1:146:unmatched end tag:a, 1:152:in table:img, 1:152:unmatched end tag:img, 1:160:in table:title, 1:160:not closed:tr, 1:167:in table:span, 1:167:not closed:tr, 1:175:in table:style, 1:175:not closed:tr, 1:184:in table:script, 1:184:not closed:tr, 1:197:unmatched end tag:th, 1:202:unmatched end tag:td, 1:207:unmatched end tag:tr, 1:215:unmatched end tag:frame, 1:222:unmatched end tag:area, 1:229:not closed:body, 1:237:unmatched end tag:param, 1:242:unmatched end tag:hr, 1:250:unmatched end tag:input, 1:256:unmatched end tag:col, 1:263:not closed:body, 1:270:not closed:body, 1:281:unmatched end tag:basefont, 1:291:unmatched end tag:bgsound, 1:299:unmatched end tag:embed, 1:308:unmatched end tag:spacer, 1:312:not closed:body, 1:317:not closed:body, 1:322:not closed:body, 1:332:unmatched end tag:caption, 1:343:unmatched end tag:colgroup, 1:351:unmatched end tag:tbody, 1:359:unmatched end tag:tfoot, 1:367:unmatched end tag:thead, 1:377:not closed:body, 1:390:not closed:body, 1:399:not closed:body, 1:405:not closed:body, 1:411:not closed:body, 1:416:not closed:body, 1:427:not closed:body, 1:437:not closed:body, 1:444:not closed:body, 1:449:not closed:body, 1:454:not closed:body, 1:459:not closed:body, 1:466:unmatched end tag:nobr, 1:472:unmatched end tag:wbr, 1:479:not closed:body, 1:488:not closed:body, 1:498:not closed:body, 1:507:not closed:body, 1:525:after html:frameset, 1:525:after body:/frameset, 1:525:unmatched end tag:frameset, 1:532:unmatched end tag:head, 1:541:unmatched end tag:iframe, 1:549:unmatched end tag:image, 1:559:unmatched end tag:isindex, 1:569:unmatched end tag:noembed, 1:580:unmatched end tag:noframes, 1:591:not closed:body, 1:602:unmatched end tag:optgroup, 1:611:unmatched end tag:option, 1:623:not closed:body, 1:633:unmatched end tag:textarea;7: missing document type declaration, 20: unexpected node in table context, 20: mismatched strong element end tag (no matching start tag), 24: unexpected node in table context, 24: mismatched b element end tag (no matching start tag), 29: unexpected node in table context, 29: mismatched em element end tag (no matching start tag), 33: unexpected node in table context, 33: mismatched i element end tag (no matching start tag), 37: unexpected node in table context, 37: mismatched u element end tag (no matching start tag), 46: unexpected node in table context, 46: mismatched strike element end tag (no matching start tag), 50: unexpected node in table context, 50: mismatched s element end tag (no matching start tag), 58: unexpected node in table context, 58: unexpected blink element end tag, 63: unexpected node in table context, 63: mismatched tt element end tag (no matching start tag), 69: unexpected node in table context, 69: mismatched pre element end tag, 75: unexpected node in table context, 75: mismatched big element end tag (no matching start tag), 83: unexpected node in table context, 83: mismatched small element end tag (no matching start tag), 90: unexpected node in table context, 90: mismatched font element end tag (no matching start tag), 99: unexpected node in table context, 99: mismatched special end tag select, 104: unexpected node in table context, 104: mismatched h1 element end tag, 109: unexpected node in table context, 109: mismatched h2 element end tag, 114: unexpected node in table context, 114: mismatched h3 element end tag, 119: unexpected node in table context, 119: mismatched h4 element end tag, 124: unexpected node in table context, 124: mismatched h5 element end tag, 129: unexpected node in table context, 129: mismatched h6 element end tag, 136: unexpected body element end tag, 141: unexpected node in table context, 141: unexpected br end tag (that element has no end tag, ever), 145: unexpected node in table context, 145: mismatched a element end tag (no matching start tag), 151: unexpected node in table context, 151: unexpected img end tag (that element has no end tag, ever), 159: unexpected node in table context, 159: unexpected title element end tag, 166: unexpected node in table context, 166: unexpected span element end tag, 174: unexpected node in table context, 174: unexpected style element end tag, 183: unexpected node in table context, 183: unexpected script element end tag, 196: unexpected th element end tag, 201: unexpected td element end tag, 206: unexpected tr element end tag, 214: unexpected frame element end tag, 221: unexpected area end tag (that element has no end tag, ever), 228: unexpected link element end tag, 236: unexpected param end tag (that element has no end tag, ever), 241: unexpected hr end tag (that element has no end tag, ever), 249: unexpected input end tag (that element has no end tag, ever), 255: unexpected col element end tag, 262: unexpected base element end tag, 269: unexpected meta element end tag, 280: unexpected basefont end tag (that element has no end tag, ever), 290: unexpected bgsound end tag (that element has no end tag, ever), 298: unexpected embed end tag (that element has no end tag, ever), 307: unexpected spacer end tag (that element has no end tag, ever), 311: mismatched p element end tag, 316: mismatched dd element end tag, 321: mismatched dt element end tag, 331: unexpected caption element end tag, 342: unexpected colgroup element end tag, 350: unexpected tbody element end tag, 358: unexpected tfoot element end tag, 366: unexpected thead element end tag, 376: mismatched address element end tag, 389: mismatched blockquote element end tag, 398: mismatched center element end tag, 404: mismatched dir element end tag, 410: mismatched div element end tag, 415: mismatched dl element end tag, 426: mismatched fieldset element end tag, 436: mismatched listing element end tag, 443: mismatched menu element end tag, 448: mismatched ol element end tag, 453: mismatched ul element end tag, 458: mismatched li element end tag, 465: mismatched nobr element end tag (no matching start tag), 471: unexpected wbr end tag (that element has no end tag, ever), 478: mismatched form element end tag, 524: unexpected node at end of document, 524: unexpected node after body element end tag, 524: unexpected frameset element end tag, 531: unexpected head element end tag, 540: mismatched special end tag iframe, 548: unexpected image end tag (that element has no end tag, ever), 558: unexpected isindex end tag (that element has no end tag, ever), 568: mismatched special end tag noembed, 579: mismatched special end tag noframes, 590: mismatched special end tag noscript, 601: unexpected optgroup element end tag, 610: unexpected option element end tag, 622: unexpected plaintext element end tag, 633: mismatched special end tag textarea)
437 wakaba 1.11 not ok 226
438     # Test 226 got: "| <html>\n| <head>\n| <body>\n| <table>\n| <tbody>\n| <tr>\n" (t/HTML-tree.t at line 134 fail #113)
439 wakaba 1.8 # Expected: "| <html>\n| <head>\n| <body>\n| <br>\n| <table>\n| <tbody>\n| <tr>\n" (Document tree: <table><tr></strong></b></em></i></u></strike></s></blink></tt></pre></big></small></font></select></h1></h2></h3></h4></h5></h6></body></br></a></img></title></span></style></script></table></th></td></tr></frame></area></link></param></hr></input></col></base></meta></basefont></bgsound></embed></spacer></p></dd></dt></caption></colgroup></tbody></tfoot></thead></address></blockquote></center></dir></div></dl></fieldset></listing></menu></ol></ul></li></nobr></wbr></form></button></marquee></object></html></frameset></head></iframe></image></isindex></noembed></noframes></noscript></optgroup></option></plaintext></textarea>)
440     # Line 4 is missing:
441     # - "| <br>\n"
442 wakaba 1.1 ok 227
443     ok 228
444     ok 229
445     ok 230
446     ok 231
447     ok 232
448     ok 233
449     ok 234
450 wakaba 1.11 ok 235
451     ok 236
452     not ok 237
453     # Test 237 got: "5" (t/HTML-tree.t at line 132 fail #119)
454 wakaba 1.8 # Expected: "2" (Parse error: <!DOCTYPE HTML><frameset>test; 1:27:in frameset:#character, 1:28:in frameset:#character, 1:29:in frameset:#character, 1:29:in frameset:#character, 1:29:not closed:frameset;frameset can't contain text, Unexpected end of file)
455 wakaba 1.1 ok 238
456 wakaba 1.11 ok 239
457 wakaba 1.1 ok 240
458 wakaba 1.9 not ok 241
459 wakaba 1.11 # Test 241 got: "1" (t/HTML-tree.t at line 132 fail #121)
460     # Expected: "0" (Parse error: <!DOCTYPE HTML><font><p><b>test</font>; 1:38:not closed:b;)
461 wakaba 1.1 ok 242
462     not ok 243
463 wakaba 1.11 # Test 243 got: "1" (t/HTML-tree.t at line 132 fail #122)
464     # Expected: "0" (Parse error: <!DOCTYPE HTML><dt><div><dd>; 1:28:end tag missing:div;)
465     ok 244
466     not ok 245
467     # Test 245 got: "4" (t/HTML-tree.t at line 132 fail #123)
468 wakaba 1.1 # Expected: "3" (Parse error: <script></x; 1:9:missing DOCTYPE, 1:11:unmatched end tag, 1:11:in CDATA:#end-of-file, 1:11:not closed:head;no document type, </ in script, Unexpected end of file. Expected </script> end tag.)
469 wakaba 1.11 not ok 246
470     # Test 246 got: "| <html>\n| <head>\n| <script>\n| \"</x\"\n" (t/HTML-tree.t at line 134 fail #123)
471 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <script>\n| \"</x\"\n| <body>\n" (Document tree: <script></x)
472     # Line 5 is missing:
473     # - "| <body>\n"
474 wakaba 1.11 not ok 247
475     # Test 247 got: "7" (t/HTML-tree.t at line 132 fail #124)
476 wakaba 1.1 # Expected: "4" (Parse error: <table><plaintext><td>; 1:8:missing DOCTYPE, 1:19:in table:plaintext, 1:20:in table:#character, 1:21:in table:#character, 1:22:in table:#character, 1:22:in table:#character, 1:22:not closed:plaintext;no document type, <plaintext> directly inside table, Characters inside table., Unexpected end of file.)
477     ok 248
478 wakaba 1.11 ok 249
479     ok 250
480     not ok 251
481     # Test 251 got: "5" (t/HTML-tree.t at line 132 fail #126)
482 wakaba 1.8 # Expected: "2" (Parse error: <!DOCTYPE HTML><table><tr>TEST; 1:28:in table:#character, 1:29:in table:#character, 1:30:in table:#character, 1:30:in table:#character, 1:30:not closed:tbody;TEST can't occur in <tr>, Unexpected end of file.)
483 wakaba 1.11 ok 252
484     ok 253
485     not ok 254
486     # Test 254 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| t1=\"1\"\n| t2=\"2\"\n| t3=\"3\"\n| t4=\"4\"\n" (t/HTML-tree.t at line 134 fail #127)
487 wakaba 1.8 # Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| t4=\"4\"\n| t2=\"2\"\n| t3=\"3\"\n| t1=\"1\"\n" (Document tree: <!DOCTYPE HTML><body t1=1><body t2=2><body t3=3 t4=4>)
488 wakaba 1.1 # Line 5 is changed:
489     # - "| t4=\"4\"\n"
490     # + "| t1=\"1\"\n"
491     # Line 8 is changed:
492     # - "| t1=\"1\"\n"
493     # + "| t4=\"4\"\n"
494 wakaba 1.11 ok 255
495     not ok 256
496     # Test 256 got: "| <html>\n" (t/HTML-tree.t at line 134 fail #128)
497 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <body>\n" (Document tree: </b test)
498     # Lines 2-2 are missing:
499     # - "| <head>\n"
500     # - "| <body>\n"
501 wakaba 1.11 not ok 257
502     # Test 257 got: "5" (t/HTML-tree.t at line 132 fail #129)
503 wakaba 1.8 # Expected: "4" (Parse error: <!DOCTYPE HTML></b test<b &=&amp>X; 1:24:unclosed tag, 1:24:end tag attribute, 1:24:unmatched end tag:b, 1:33:refc, 1:34:not closed:b;Unexpected < in attribute, End tag contains attributes., Unexpected end tag., Named entity didn't end with ;)
504 wakaba 1.11 not ok 258
505     # Test 258 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <b>\n| &=\"&\"\n| \"X\"\n" (t/HTML-tree.t at line 134 fail #129)
506 wakaba 1.8 # Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| \"X\"\n" (Document tree: <!DOCTYPE HTML></b test<b &=&amp>X)
507     # Line 5 is changed:
508     # - "| \"X\"\n"
509     # + "| <b>\n"
510     # Got 2 extra lines at line 6:
511     # + "| &=\"&\"\n"
512     # + "| \"X\"\n"
513 wakaba 1.11 not ok 259
514     # Test 259 got: "3" (t/HTML-tree.t at line 132 fail #130)
515 wakaba 1.1 # Expected: "2" (Parse error: <!doctypehtml><scrIPt type=text/x-foobar;baz>X</SCRipt; 1:10:no space before DOCTYPE name, 1:54:unclosed tag, 1:54:not closed:head;No space after literal DOCTYPE., Unexpected EOF in (end) tag name)
516 wakaba 1.11 not ok 260
517     # Test 260 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <script>\n| type=\"text/x-foobar;baz\"\n| \"X\"\n" (t/HTML-tree.t at line 134 fail #130)
518 wakaba 1.8 # Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <script>\n| type=\"text/x-foobar;baz\"\n| \"X\"\n| <body>\n" (Document tree: <!doctypehtml><scrIPt type=text/x-foobar;baz>X</SCRipt)
519     # Line 1 is changed:
520     # - "| <!DOCTYPE html>\n"
521     # + "| <!DOCTYPE HTML>\n"
522 wakaba 1.1 # Line 7 is missing:
523     # - "| <body>\n"
524     ok 261
525     ok 262
526     ok 263
527     ok 264
528     ok 265
529     ok 266
530     ok 267
531     ok 268
532     ok 269
533     ok 270
534     ok 271
535 wakaba 1.11 ok 272
536     ok 273
537     not ok 274
538     # Test 274 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <p>\n| <li>\n" (t/HTML-tree.t at line 134 fail #137)
539 wakaba 1.8 # Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <li>\n" (Document tree: <!doctypehtml><p><li>)
540     # Line 1 is changed:
541     # - "| <!DOCTYPE html>\n"
542     # + "| <!DOCTYPE HTML>\n"
543 wakaba 1.1 ok 275
544 wakaba 1.11 ok 276
545     ok 277
546     not ok 278
547     # Test 278 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <p>\n| <dd>\n" (t/HTML-tree.t at line 134 fail #139)
548 wakaba 1.8 # Expected: "| <!DOCTYPE htmL>\n| <html>\n| <head>\n| <body>\n| <p>\n| <dd>\n" (Document tree: <!doctypehtmL><p><dd>)
549     # Line 1 is changed:
550     # - "| <!DOCTYPE htmL>\n"
551     # + "| <!DOCTYPE HTML>\n"
552 wakaba 1.11 ok 279
553     not ok 280
554     # Test 280 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <p>\n| <form>\n" (t/HTML-tree.t at line 134 fail #140)
555 wakaba 1.8 # Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <p>\n| <form>\n" (Document tree: <!doctypehtml><p><form>)
556     # Line 1 is changed:
557     # - "| <!DOCTYPE html>\n"
558     # + "| <!DOCTYPE HTML>\n"
559 wakaba 1.11 ok 281
560     not ok 282
561     # Test 282 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <i>\n| <u>\n| <b>\n| <i>\n| <u>\n| \" \"\n| <p>\n| \"X\"\n" (t/HTML-tree.t at line 134 fail #141)
562 wakaba 1.8 # Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <i>\n| <u>\n| \" \"\n| <p>\n| <b>\n| <i>\n| <u>\n| \"X\"\n" (Document tree: <!DOCTYPE HTML><p><b><i><u></p> <p>X)
563 wakaba 1.1 # Lines 9-13 are changed:
564     # - "| \" \"\n"
565     # + "| <b>\n"
566     # - "| <p>\n"
567     # + "| <i>\n"
568     # - "| <b>\n"
569     # + "| <u>\n"
570     # - "| <i>\n"
571     # + "| \" \"\n"
572     # - "| <u>\n"
573     # + "| <p>\n"
574     ok 283
575     ok 284
576     ok 285
577     ok 286
578     ok 287
579     ok 288
580     ok 289
581     ok 290
582     ok 291
583 wakaba 1.11 ok 292
584     ok 293
585     not ok 294
586     # Test 294 got: "| <!DOCTYPE HTML>\n| <!-- X -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #147)
587 wakaba 1.8 # Expected: "| <!DOCTYPE HTML>\n| <!-- X -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE HTML><!-- X)
588 wakaba 1.1 # Lines 4-4 are missing:
589     # - "| <head>\n"
590     # - "| <body>\n"
591     ok 295
592     ok 296
593     ok 297
594     ok 298
595     ok 299
596     ok 300
597     ok 301
598     ok 302
599     ok 303
600 wakaba 1.11 ok 304
601     ok 305
602     not ok 306
603     # Test 306 got: "| <!DOCTYPE HTML>\n| <!-- XXX - XXX -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #153)
604 wakaba 1.8 # Expected: "| <!DOCTYPE HTML>\n| <!-- XXX - XXX -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE HTML><!-- XXX - XXX -->)
605 wakaba 1.1 # Lines 4-4 are missing:
606     # - "| <head>\n"
607     # - "| <body>\n"
608 wakaba 1.11 ok 307
609     not ok 308
610     # Test 308 got: "| <!DOCTYPE HTML>\n| <!-- XXX - XXX -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #154)
611 wakaba 1.8 # Expected: "| <!DOCTYPE HTML>\n| <!-- XXX - XXX -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE HTML><!-- XXX - XXX)
612 wakaba 1.1 # Lines 4-4 are missing:
613     # - "| <head>\n"
614     # - "| <body>\n"
615 wakaba 1.11 ok 309
616     not ok 310
617     # Test 310 got: "| <!DOCTYPE HTML>\n| <!-- XXX - XXX - XXX -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #155)
618 wakaba 1.8 # Expected: "| <!DOCTYPE HTML>\n| <!-- XXX - XXX - XXX -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE HTML><!-- XXX - XXX - XXX -->)
619 wakaba 1.1 # Lines 4-4 are missing:
620     # - "| <head>\n"
621     # - "| <body>\n"
622 wakaba 1.11 ok 311
623     not ok 312
624     # Test 312 got: "| <html>\n| <head>\n| <body>\n| <form>\n| <hr>\n| <p>\n| <label>\n| \"This is a searchable index. Insert your search keywords here: \"\n| <input>\n| name=\"isindex\"\n| test=\"x\"\n| <hr>\n" (t/HTML-tree.t at line 134 fail #156)
625 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <body>\n| <form>\n| <hr>\n| <p>\n| <label>\n| \"This is a searchable index. Insert your search keywords here:\"\n| <input>\n| test=\"x\"\n| name=\"isindex\"\n| <hr>\n" (Document tree: <isindex test=x name=x>)
626     # Line 8 is changed:
627     # - "| \"This is a searchable index. Insert your search keywords here:\"\n"
628     # + "| \"This is a searchable index. Insert your search keywords here: \"\n"
629     # Got 1 extra line at line 10:
630     # + "| name=\"isindex\"\n"
631     # Line 12 is missing:
632     # - "| name=\"isindex\"\n"
633     ok 313
634 wakaba 1.11 ok 314
635     ok 315
636     not ok 316
637     # Test 316 got: "| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <i>\n| <u>\n| <b>\n| <i>\n| <u>\n| \"\n\"\n| <p>\n| \"X\"\n" (t/HTML-tree.t at line 134 fail #158)
638 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <body>\n| <p>\n| <b>\n| <i>\n| <u>\n| \"\n\"\n| <p>\n| <b>\n| <i>\n| <u>\n| \"X\"\n" (Document tree: <p><b><i><u></p>
639     #<p>X)
640     # Line 8 is changed:
641     # - "| \"\n"
642     # + "| <b>\n"
643     # Got 3 extra lines at line 9:
644     # + "| <i>\n"
645     # + "| <u>\n"
646     # + "| \"\n"
647     # Line 13 is changed:
648     # - "| <p>\n"
649     # + "| <p>\n"
650     # Lines 14-14 are missing:
651     # - "| <b>\n"
652     # - "| <i>\n"
653     # - "| <u>\n"
654     ok 317
655 wakaba 1.11 ok 318
656     ok 319
657     not ok 320
658     # Test 320 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <title>\n| \"X\"\n| <meta>\n| name=\"z\"\n| <link>\n| rel=\"foo\"\n| <body>\n| <style>\n| \"\nx { content:\"</style\" } \"\n" (t/HTML-tree.t at line 134 fail #160)
659 wakaba 1.8 # Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <title>\n| \"X\"\n| <body>\n| <meta>\n| name=\"z\"\n| <link>\n| rel=\"foo\"\n| <style>\n| \"\nx { content:\"</style\" } \"\n" (Document tree: <!DOCTYPE HTML><body><title>X</title><meta name=z><link rel=foo><style>
660     #x { content:"</style" } </style>)
661     # Line 6 is missing:
662     # - "| <body>\n"
663     # Got 1 extra line at line 10:
664     # + "| <body>\n"
665 wakaba 1.1 ok 321
666 wakaba 1.11 ok 322
667     ok 323
668     not ok 324
669     # Test 324 got: "| \" \n \"\n| <html>\n" (t/HTML-tree.t at line 134 fail #162)
670 wakaba 1.1 # Expected: "| \" \n \"\n| <html>\n| <head>\n| <body>\n" (Document tree:
671     # )
672     # Lines 4-4 are missing:
673     # - "| <head>\n"
674     # - "| <body>\n"
675 wakaba 1.11 ok 325
676     not ok 326
677     # Test 326 got: "| <!DOCTYPE HTML>\n| \" \"\n| <html>\n" (t/HTML-tree.t at line 134 fail #163)
678 wakaba 1.8 # Expected: "| <!DOCTYPE HTML>\n| \" \"\n| <html>\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE HTML> <html>)
679 wakaba 1.1 # Lines 4-4 are missing:
680     # - "| <head>\n"
681     # - "| <body>\n"
682 wakaba 1.11 ok 327
683     not ok 328
684     # Test 328 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <script>\n| \"\n\"\n| \" \"\n| <title>\n| \"x\"\n| \" \"\n" (t/HTML-tree.t at line 134 fail #164)
685 wakaba 1.8 # Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <script>\n| \"\n\"\n| \" \"\n| <title>\n| \"x\"\n| \" \"\n| <body>\n" (Document tree: <!DOCTYPE HTML><script>
686 wakaba 1.1 #</script> <title>x</title> </head>)
687     # Line 11 is missing:
688     # - "| <body>\n"
689 wakaba 1.11 not ok 329
690     # Test 329 got: "0" (t/HTML-tree.t at line 132 fail #165)
691 wakaba 1.8 # Expected: "1" (Parse error: <!DOCTYPE HTML><html><body><html id=x>; ;duplicate html start tag)
692 wakaba 1.11 ok 330
693     not ok 331
694     # Test 331 got: "0" (t/HTML-tree.t at line 132 fail #166)
695 wakaba 1.8 # Expected: "2" (Parse error: <!DOCTYPE HTML>X</body><html id="x">; ;Unexpected html start tag in the after body phase., html needs to be the first start tag.)
696 wakaba 1.11 ok 332
697     ok 333
698     not ok 334
699     # Test 334 got: "| <!DOCTYPE HTML>\n| <html>\n| id=\"x\"\n| <head>\n" (t/HTML-tree.t at line 134 fail #167)
700 wakaba 1.8 # Expected: "| <!DOCTYPE HTML>\n| <html>\n| id=\"x\"\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE HTML><head><html id=x>)
701 wakaba 1.1 # Line 5 is missing:
702     # - "| <body>\n"
703     ok 335
704     ok 336
705     ok 337
706     ok 338
707     ok 339
708 wakaba 1.11 ok 340
709     ok 341
710     not ok 342
711     # Test 342 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| \"X\"\n| <p>\n| x=\"\"\n| y=\"\"\n| z=\"\"\n" (t/HTML-tree.t at line 134 fail #171)
712 wakaba 1.8 # Expected: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| \"X\"\n| <p>\n| y=\"\"\n| x=\"\"\n| z=\"\"\n" (Document tree: <!DOCTYPE HTML>X<p/x/y/z>)
713 wakaba 1.1 # Got 1 extra line at line 7:
714     # + "| x=\"\"\n"
715     # Line 9 is missing:
716     # - "| x=\"\"\n"
717 wakaba 1.11 ok 343
718     not ok 344
719     # Test 344 got: "| <!DOCTYPE HTML>\n| <!-- x -->\n| <html>\n" (t/HTML-tree.t at line 134 fail #172)
720 wakaba 1.8 # Expected: "| <!DOCTYPE HTML>\n| <!-- x -->\n| <html>\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE HTML><!--x--)
721 wakaba 1.1 # Lines 4-4 are missing:
722     # - "| <head>\n"
723     # - "| <body>\n"
724     ok 345
725 wakaba 1.11 ok 346
726     ok 347
727     not ok 348
728     # Test 348 got: "| <html>\n| <head>\n| <style>\n" (t/HTML-tree.t at line 134 fail #174)
729 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <style>\n| <body>\n" (Document tree: <head></head><style></style>)
730     # Line 4 is missing:
731     # - "| <body>\n"
732 wakaba 1.11 ok 349
733     not ok 350
734     # Test 350 got: "| <html>\n| <head>\n| <script>\n" (t/HTML-tree.t at line 134 fail #175)
735 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <script>\n| <body>\n" (Document tree: <head></head><script></script>)
736     # Line 4 is missing:
737     # - "| <body>\n"
738 wakaba 1.11 ok 351
739     not ok 352
740     # Test 352 got: "| <html>\n| <head>\n| <style>\n| <script>\n| <!-- -->\n| <!-- -->\n" (t/HTML-tree.t at line 134 fail #176)
741 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <style>\n| <script>\n| <!-- -->\n| <!-- -->\n| <body>\n" (Document tree: <head></head><!-- --><style></style><!-- --><script></script>)
742     # Line 7 is missing:
743     # - "| <body>\n"
744     ok 353
745 wakaba 1.11 ok 354
746     ok 355
747     not ok 356
748     # Test 356 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <pre>\n" (t/HTML-tree.t at line 134 fail #178)
749 wakaba 1.8 # Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <pre>\n" (Document tree: <!DOCTYPE htML><html><head></head><body><pre>
750     #</pre></body></html>)
751     # Line 1 is changed:
752     # - "| <!DOCTYPE htML>\n"
753     # + "| <!DOCTYPE HTML>\n"
754 wakaba 1.11 ok 357
755     not ok 358
756     # Test 358 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"\nfoo\"\n" (t/HTML-tree.t at line 134 fail #179)
757 wakaba 1.8 # Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"foo\"\n" (Document tree: <!DOCTYPE htML><html><head></head><body><pre>
758 wakaba 1.1 #
759     #foo</pre></body></html>)
760 wakaba 1.8 # Line 1 is changed:
761     # - "| <!DOCTYPE htML>\n"
762     # + "| <!DOCTYPE HTML>\n"
763 wakaba 1.1 # Line 6 is changed:
764     # - "| \"foo\"\n"
765     # + "| \"\n"
766     # Got 1 extra line at line 7:
767     # + "foo\"\n"
768 wakaba 1.11 ok 359
769     not ok 360
770     # Test 360 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"\nfoo\n\"\n" (t/HTML-tree.t at line 134 fail #180)
771 wakaba 1.8 # Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"foo\n\"\n" (Document tree: <!DOCTYPE htML><html><head></head><body><pre>
772 wakaba 1.1 #
773     #foo
774     #</pre></body></html>)
775 wakaba 1.8 # Line 1 is changed:
776     # - "| <!DOCTYPE htML>\n"
777     # + "| <!DOCTYPE HTML>\n"
778 wakaba 1.1 # Line 6 is changed:
779     # - "| \"foo\n"
780     # + "| \"\n"
781     # Got 1 extra line at line 7:
782     # + "foo\n"
783 wakaba 1.11 ok 361
784     not ok 362
785     # Test 362 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\"\n| <span>\n| \"\n\"\n" (t/HTML-tree.t at line 134 fail #181)
786 wakaba 1.8 # Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\"\n| <span>\n| \"\n\"\n" (Document tree: <!DOCTYPE htML><html><head></head><body><pre>x</pre><span>
787     #</span></body></html>)
788     # Line 1 is changed:
789     # - "| <!DOCTYPE htML>\n"
790     # + "| <!DOCTYPE HTML>\n"
791 wakaba 1.11 ok 363
792     not ok 364
793     # Test 364 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\ny\"\n" (t/HTML-tree.t at line 134 fail #182)
794 wakaba 1.8 # Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\ny\"\n" (Document tree: <!DOCTYPE htML><html><head></head><body><pre>x
795     #y</pre></body></html>)
796     # Line 1 is changed:
797     # - "| <!DOCTYPE htML>\n"
798     # + "| <!DOCTYPE HTML>\n"
799 wakaba 1.11 not ok 365
800     # Test 365 got: "1" (t/HTML-tree.t at line 132 fail #183)
801 wakaba 1.8 # Expected: "0" (Parse error: <!DOCTYPE htML><html><head></head><body><pre>x<div>
802 wakaba 1.1 #y</pre></body></html>; 2:8:not closed:div;)
803 wakaba 1.11 not ok 366
804     # Test 366 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\"\n| <div>\n| \"\ny\"\n" (t/HTML-tree.t at line 134 fail #183)
805 wakaba 1.8 # Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <pre>\n| \"x\"\n| <div>\n| \"\n| y\"\n" (Document tree: <!DOCTYPE htML><html><head></head><body><pre>x<div>
806 wakaba 1.1 #y</pre></body></html>)
807 wakaba 1.8 # Line 1 is changed:
808     # - "| <!DOCTYPE htML>\n"
809     # + "| <!DOCTYPE HTML>\n"
810 wakaba 1.1 # Line 9 is changed:
811     # - "| y\"\n"
812     # + "y\"\n"
813 wakaba 1.11 not ok 367
814     # Test 367 got: "1" (t/HTML-tree.t at line 132 fail #184)
815 wakaba 1.8 # Expected: "0" (Parse error: <!DOCTYPE htML><HTML><META><HEAD></HEAD></HTML>; 1:34:in head:head;)
816 wakaba 1.11 not ok 368
817     # Test 368 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <meta>\n| <body>\n" (t/HTML-tree.t at line 134 fail #184)
818 wakaba 1.8 # Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <meta>\n| <body>\n" (Document tree: <!DOCTYPE htML><HTML><META><HEAD></HEAD></HTML>)
819     # Line 1 is changed:
820     # - "| <!DOCTYPE htML>\n"
821     # + "| <!DOCTYPE HTML>\n"
822 wakaba 1.11 not ok 369
823     # Test 369 got: "1" (t/HTML-tree.t at line 132 fail #185)
824 wakaba 1.8 # Expected: "0" (Parse error: <!DOCTYPE htML><HTML><HEAD><head></HEAD></HTML>; 1:34:in head:head;)
825 wakaba 1.11 not ok 370
826     # Test 370 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n" (t/HTML-tree.t at line 134 fail #185)
827 wakaba 1.8 # Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n" (Document tree: <!DOCTYPE htML><HTML><HEAD><head></HEAD></HTML>)
828     # Line 1 is changed:
829     # - "| <!DOCTYPE htML>\n"
830     # + "| <!DOCTYPE HTML>\n"
831 wakaba 1.1 not ok 371
832 wakaba 1.11 # Test 371 got: "3" (t/HTML-tree.t at line 132 fail #186)
833     # Expected: "0" (Parse error: <textarea>foo<span>bar</span><i>baz; 1:11:missing DOCTYPE, 1:25:unmatched end tag, 1:35:in CDATA:#end-of-file;)
834     ok 372
835     not ok 373
836     # Test 373 got: "4" (t/HTML-tree.t at line 132 fail #187)
837 wakaba 1.1 # Expected: "0" (Parse error: <title>foo<span>bar</em><i>baz; 1:8:missing DOCTYPE, 1:22:unmatched end tag, 1:30:in RCDATA:#end-of-file, 1:30:not closed:head;)
838 wakaba 1.11 not ok 374
839     # Test 374 got: "| <html>\n| <head>\n| <title>\n| \"foo<span>bar</em><i>baz\"\n" (t/HTML-tree.t at line 134 fail #187)
840 wakaba 1.1 # Expected: "| <html>\n| <head>\n| <title>\n| \"foo<span>bar</em><i>baz\"\n| <body>\n" (Document tree: <title>foo<span>bar</em><i>baz)
841     # Line 5 is missing:
842     # - "| <body>\n"
843 wakaba 1.11 ok 375
844     not ok 376
845     # Test 376 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <textarea>\n" (t/HTML-tree.t at line 134 fail #188)
846 wakaba 1.8 # Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <textarea>\n" (Document tree: <!DOCTYPE htML><textarea>
847     #</textarea>)
848     # Line 1 is changed:
849     # - "| <!DOCTYPE htML>\n"
850     # + "| <!DOCTYPE HTML>\n"
851 wakaba 1.11 ok 377
852     not ok 378
853     # Test 378 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"\nfoo\"\n" (t/HTML-tree.t at line 134 fail #189)
854 wakaba 1.8 # Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <textarea>\n| \"foo\"\n" (Document tree: <!DOCTYPE htML><textarea>
855     #
856     #foo</textarea>)
857     # Line 1 is changed:
858     # - "| <!DOCTYPE htML>\n"
859     # + "| <!DOCTYPE HTML>\n"
860     # Line 6 is changed:
861     # - "| \"foo\"\n"
862     # + "| \"\n"
863 wakaba 1.9 # Got 1 extra line at line 7:
864 wakaba 1.8 # + "foo\"\n"
865 wakaba 1.11 ok 379
866     not ok 380
867     # Test 380 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <ul>\n| <li>\n| <div>\n| <p>\n| <li>\n" (t/HTML-tree.t at line 134 fail #190)
868 wakaba 1.8 # Expected: "| <!DOCTYPE htML>\n| <html>\n| <head>\n| <body>\n| <ul>\n| <li>\n| <div>\n| <p>\n| <li>\n" (Document tree: <!DOCTYPE htML><html><head></head><body><ul><li><div><p><li></ul></body></html>)
869     # Line 1 is changed:
870     # - "| <!DOCTYPE htML>\n"
871     # + "| <!DOCTYPE HTML>\n"
872 wakaba 1.11 ok 381
873     not ok 382
874     # Test 382 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <nobr>\n| <nobr>\n| <nobr>\n" (t/HTML-tree.t at line 134 fail #191)
875 wakaba 1.8 # Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <nobr>\n| <nobr>\n| <nobr>\n" (Document tree: <!doctype html><nobr><nobr><nobr>)
876     # Line 1 is changed:
877     # - "| <!DOCTYPE html>\n"
878     # + "| <!DOCTYPE HTML>\n"
879     # Lines 6-7 are changed:
880     # - "| <nobr>\n"
881     # + "| <nobr>\n"
882     # - "| <nobr>\n"
883     # + "| <nobr>\n"
884 wakaba 1.11 ok 383
885     not ok 384
886     # Test 384 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| <nobr>\n| <nobr>\n| <nobr>\n" (t/HTML-tree.t at line 134 fail #192)
887 wakaba 1.8 # Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <nobr>\n| <nobr>\n| <nobr>\n" (Document tree: <!doctype html><nobr><nobr></nobr><nobr>)
888     # Line 1 is changed:
889     # - "| <!DOCTYPE html>\n"
890     # + "| <!DOCTYPE HTML>\n"
891     # Lines 6-7 are changed:
892     # - "| <nobr>\n"
893     # + "| <nobr>\n"
894     # - "| <nobr>\n"
895     # + "| <nobr>\n"
896     ok 385
897 wakaba 1.1 ok 386
898 wakaba 1.11 ok 387
899     ok 388
900     not ok 389
901     # Test 389 got: "1" (t/HTML-tree.t at line 132 fail #195)
902 wakaba 1.8 # Expected: "0" (Parse error: textarea content with <em>pseudo</em> <foo>markup; 1:35:unmatched end tag;)
903 wakaba 1.1 ok 390
904     ok 391
905     ok 392
906     ok 393
907     ok 394
908 wakaba 1.11 ok 395
909 wakaba 1.1 ok 396
910 wakaba 1.8 not ok 397
911 wakaba 1.11 # Test 397 got: "1" (t/HTML-tree.t at line 132 fail #199)
912     # Expected: "0" (Parse error: <title>setting head's innerHTML</title>; 1:8:in body:title;)
913     ok 398
914     not ok 399
915     # Test 399 got: "1" (t/HTML-tree.t at line 132 fail #200)
916 wakaba 1.8 # Expected: "2" (Parse error: <style> <!-- </style>x; 1:8:missing DOCTYPE;No DOCTYPE, Unexpected end of file)
917 wakaba 1.11 not ok 400
918     # Test 400 got: "| <html>\n| <head>\n| <style>\n| \" <!-- \"\n| <body>\n| \"x\"\n" (t/HTML-tree.t at line 134 fail #200)
919 wakaba 1.8 # Expected: "| <html>\n| <head>\n| <style>\n| \" <!-- </style>x\"\n| <body>\n" (Document tree: <style> <!-- </style>x)
920     # Line 4 is changed:
921     # - "| \" <!-- </style>x\"\n"
922     # + "| \" <!-- \"\n"
923     # Got 1 extra line at line 6:
924     # + "| \"x\"\n"
925 wakaba 1.11 not ok 401
926     # Test 401 got: "2" (t/HTML-tree.t at line 132 fail #201)
927 wakaba 1.8 # Expected: "1" (Parse error: <style> <!-- </style> --> </style>x; 1:8:missing DOCTYPE, 1:35:not closed:body;No DOCTYPE)
928 wakaba 1.11 not ok 402
929     # Test 402 got: "| <html>\n| <head>\n| <style>\n| \" <!-- \"\n| \" \"\n| <body>\n| \"--> x\"\n" (t/HTML-tree.t at line 134 fail #201)
930 wakaba 1.8 # Expected: "| <html>\n| <head>\n| <style>\n| \" <!-- </style> --> \"\n| <body>\n| \"x\"\n" (Document tree: <style> <!-- </style> --> </style>x)
931     # Line 4 is changed:
932     # - "| \" <!-- </style> --> \"\n"
933     # + "| \" <!-- \"\n"
934     # Got 1 extra line at line 5:
935     # + "| \" \"\n"
936     # Line 7 is changed:
937     # - "| \"x\"\n"
938     # + "| \"--> x\"\n"
939 wakaba 1.1 ok 403
940     ok 404
941     ok 405
942     ok 406
943 wakaba 1.11 ok 407
944     ok 408
945     not ok 409
946     # Test 409 got: "3" (t/HTML-tree.t at line 132 fail #205)
947 wakaba 1.8 # Expected: "1" (Parse error: <iframe> <!--- </iframe>->x</iframe> --> </iframe>x; 1:9:missing DOCTYPE, 1:37:unmatched end tag:iframe, 1:51:unmatched end tag:iframe;No DOCTYPE)
948 wakaba 1.11 not ok 410
949     # Test 410 got: "| <html>\n| <head>\n| <body>\n| <iframe>\n| \" <!--- \"\n| \"->x --> x\"\n" (t/HTML-tree.t at line 134 fail #205)
950 wakaba 1.8 # Expected: "| <html>\n| <head>\n| <body>\n| <iframe>\n| \" <!--- </iframe>->x</iframe> --> \"\n| \"x\"\n" (Document tree: <iframe> <!--- </iframe>->x</iframe> --> </iframe>x)
951     # Lines 5-6 are changed:
952     # - "| \" <!--- </iframe>->x</iframe> --> \"\n"
953     # + "| \" <!--- \"\n"
954     # - "| \"x\"\n"
955     # + "| \"->x --> x\"\n"
956 wakaba 1.11 not ok 411
957     # Test 411 got: "2" (t/HTML-tree.t at line 132 fail #206)
958 wakaba 1.8 # Expected: "1" (Parse error: <script> <!-- </script> --> </script>x; 1:9:missing DOCTYPE, 1:38:not closed:body;No DOCTYPE)
959 wakaba 1.11 not ok 412
960     # Test 412 got: "| <html>\n| <head>\n| <script>\n| \" <!-- \"\n| \" \"\n| <body>\n| \"--> x\"\n" (t/HTML-tree.t at line 134 fail #206)
961 wakaba 1.8 # Expected: "| <html>\n| <head>\n| <script>\n| \" <!-- </script> --> \"\n| <body>\n| \"x\"\n" (Document tree: <script> <!-- </script> --> </script>x)
962     # Line 4 is changed:
963     # - "| \" <!-- </script> --> \"\n"
964     # + "| \" <!-- \"\n"
965     # Got 1 extra line at line 5:
966     # + "| \" \"\n"
967     # Line 7 is changed:
968     # - "| \"x\"\n"
969     # + "| \"--> x\"\n"
970 wakaba 1.11 not ok 413
971     # Test 413 got: "2" (t/HTML-tree.t at line 132 fail #207)
972 wakaba 1.8 # Expected: "1" (Parse error: <title> <!-- </title> --> </title>x; 1:8:missing DOCTYPE, 1:35:not closed:body;No DOCTYPE)
973 wakaba 1.11 not ok 414
974     # Test 414 got: "| <html>\n| <head>\n| <title>\n| \" <!-- \"\n| \" \"\n| <body>\n| \"--> x\"\n" (t/HTML-tree.t at line 134 fail #207)
975 wakaba 1.8 # Expected: "| <html>\n| <head>\n| <title>\n| \" <!-- </title> --> \"\n| <body>\n| \"x\"\n" (Document tree: <title> <!-- </title> --> </title>x)
976     # Line 4 is changed:
977     # - "| \" <!-- </title> --> \"\n"
978     # + "| \" <!-- \"\n"
979     # Got 1 extra line at line 5:
980     # + "| \" \"\n"
981     # Line 7 is changed:
982     # - "| \"x\"\n"
983     # + "| \"--> x\"\n"
984 wakaba 1.11 not ok 415
985     # Test 415 got: "3" (t/HTML-tree.t at line 132 fail #208)
986 wakaba 1.8 # Expected: "1" (Parse error: <textarea> <!--- </textarea>->x</textarea> --> </textarea>x; 1:11:missing DOCTYPE, 1:43:unmatched end tag:textarea, 1:59:unmatched end tag:textarea;No DOCTYPE)
987 wakaba 1.11 not ok 416
988     # Test 416 got: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \" <!--- \"\n| \"->x --> x\"\n" (t/HTML-tree.t at line 134 fail #208)
989 wakaba 1.8 # Expected: "| <html>\n| <head>\n| <body>\n| <textarea>\n| \" <!--- </textarea>->x</textarea> --> \"\n| \"x\"\n" (Document tree: <textarea> <!--- </textarea>->x</textarea> --> </textarea>x)
990     # Lines 5-6 are changed:
991     # - "| \" <!--- </textarea>->x</textarea> --> \"\n"
992     # + "| \" <!--- \"\n"
993     # - "| \"x\"\n"
994     # + "| \"->x --> x\"\n"
995 wakaba 1.11 ok 417
996     ok 418
997     not ok 419
998     # Test 419 got: "2" (t/HTML-tree.t at line 132 fail #210)
999 wakaba 1.8 # Expected: "0" (Parse error: <!doctype html></head> <head>; 1:23:unmatched end tag:head, 1:29:not closed:head;)
1000 wakaba 1.11 not ok 420
1001     # Test 420 got: "| <!DOCTYPE HTML>\n| <html>\n| \" \"\n| <head>\n" (t/HTML-tree.t at line 134 fail #210)
1002 wakaba 1.8 # Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| \" \"\n| <body>\n" (Document tree: <!doctype html></head> <head>)
1003     # Line 1 is changed:
1004     # - "| <!DOCTYPE html>\n"
1005     # + "| <!DOCTYPE HTML>\n"
1006     # Got 1 extra line at line 3:
1007     # + "| \" \"\n"
1008     # Lines 5-5 are missing:
1009     # - "| \" \"\n"
1010     # - "| <body>\n"
1011 wakaba 1.11 not ok 421
1012     # Test 421 got: "3" (t/HTML-tree.t at line 132 fail #211)
1013 wakaba 1.8 # Expected: "0" (Parse error: <!doctype html></html> <head>; 1:29:after html:head, 1:29:after body:head, 1:29:in body:head;)
1014 wakaba 1.11 not ok 422
1015     # Test 422 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <body>\n| \" \"\n" (t/HTML-tree.t at line 134 fail #211)
1016 wakaba 1.8 # Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| \" \"\n" (Document tree: <!doctype html></html> <head>)
1017     # Line 1 is changed:
1018     # - "| <!DOCTYPE html>\n"
1019     # + "| <!DOCTYPE HTML>\n"
1020 wakaba 1.11 not ok 423
1021     # Test 423 got: "2" (t/HTML-tree.t at line 132 fail #212)
1022 wakaba 1.8 # Expected: "0" (Parse error: <!doctype html></body><meta>; 1:23:unmatched end tag:body, 1:28:not closed:head;)
1023 wakaba 1.11 not ok 424
1024     # Test 424 got: "| <!DOCTYPE HTML>\n| <html>\n| <head>\n| <meta>\n" (t/HTML-tree.t at line 134 fail #212)
1025 wakaba 1.8 # Expected: "| <!DOCTYPE html>\n| <html>\n| <head>\n| <body>\n| <meta>\n" (Document tree: <!doctype html></body><meta>)
1026     # Line 1 is changed:
1027     # - "| <!DOCTYPE html>\n"
1028     # + "| <!DOCTYPE HTML>\n"
1029     # Line 4 is missing:
1030     # - "| <body>\n"
1031 wakaba 1.1 ok 425
1032     ok 426
1033     ok 427
1034     ok 428
1035     ok 429
1036     ok 430
1037     ok 431
1038     ok 432
1039     ok 433
1040     ok 434
1041     ok 435
1042     ok 436
1043     ok 437
1044     ok 438
1045     ok 439
1046     ok 440
1047     ok 441
1048     ok 442
1049     ok 443
1050     ok 444
1051     ok 445
1052     ok 446
1053     ok 447
1054     ok 448
1055     ok 449
1056     ok 450
1057     ok 451
1058     ok 452
1059     ok 453
1060     ok 454
1061     ok 455
1062     ok 456
1063     ok 457
1064     ok 458
1065 wakaba 1.3 ok 459
1066     ok 460
1067     ok 461
1068     ok 462
1069     ok 463
1070     ok 464
1071     ok 465
1072     ok 466
1073     ok 467
1074     ok 468
1075     ok 469
1076     ok 470
1077 wakaba 1.6 ok 471
1078     ok 472
1079 wakaba 1.8 ok 473
1080     ok 474
1081     ok 475
1082     ok 476
1083     ok 477
1084     ok 478
1085     ok 479
1086     ok 480
1087     ok 481
1088     ok 482
1089     ok 483
1090     ok 484
1091     ok 485
1092     ok 486
1093     ok 487
1094     ok 488
1095     ok 489
1096     ok 490
1097     ok 491
1098     ok 492
1099     ok 493
1100     ok 494
1101     ok 495
1102     ok 496
1103     ok 497
1104     ok 498
1105     ok 499
1106     ok 500
1107     ok 501
1108     ok 502
1109     ok 503
1110     ok 504
1111     ok 505
1112     ok 506
1113     ok 507
1114     ok 508
1115 wakaba 1.11 ok 509
1116     ok 510

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24