/[suikacvs]/markup/html/whatpm/t/tree-construction/tests6.dat
Suika

Contents of /markup/html/whatpm/t/tree-construction/tests6.dat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat Oct 4 17:16:02 2008 UTC (16 years, 9 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +9 -9 lines
++ whatpm/t/ChangeLog	4 Oct 2008 17:15:55 -0000
2008-10-05  Wakaba  <wakaba@suika.fam.cx>

	* HTML-tree.t: New test files added.

	* Makefile: New test files added.

++ whatpm/Whatpm/ChangeLog	4 Oct 2008 17:15:20 -0000
2008-10-05  Wakaba  <wakaba@suika.fam.cx>

	* HTML.pm.src: An AAA bug fixed.

1 #data
2 <!doctype html></head> <head>
3 #errors
4 Line: 1 Col: 29 Unexpected start tag head. Ignored.
5 #document
6 | <!DOCTYPE html>
7 | <html>
8 | <head>
9 | " "
10 | <body>
11
12 #data
13 <!doctype html></html> <head>
14 #errors
15 22: Stray end tag “html”.
16 29: Stray start tag “head”.
17 #document
18 | <!DOCTYPE html>
19 | <html>
20 | <head>
21 | <body>
22
23 #data
24 <!doctype html></body><meta>
25 #errors
26 22: Stray end tag “body”.
27 28: “meta” element outside “head”.
28 #document
29 | <!DOCTYPE html>
30 | <html>
31 | <head>
32 | <meta>
33 | <body>
34
35 #data
36 <!doctype html><form><div></form><div>
37 #errors
38 Line: 1 Col: 33 End tag (form) seen too early. Ignored.
39 Line: 1 Col: 38 Expected closing tag. Unexpected end of file.
40 #document
41 | <!DOCTYPE html>
42 | <html>
43 | <head>
44 | <body>
45 | <form>
46 | <div>
47 | <div>
48
49 #data
50 <!doctype html><title>&amp;</title>
51 #errors
52 #document
53 | <!DOCTYPE html>
54 | <html>
55 | <head>
56 | <title>
57 | "&"
58 | <body>
59
60 #data
61 <!doctype html><title><!--&amp;--></title>
62 #errors
63 #document
64 | <!DOCTYPE html>
65 | <html>
66 | <head>
67 | <title>
68 | "<!--&amp;-->"
69 | <body>
70
71 #data
72 <!doctype>
73 #errors
74 Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
75 Line: 1 Col: 10 Unexpected > character. Expected DOCTYPE name.
76 Line: 1 Col: 10 Erroneous DOCTYPE.
77 #document
78 | <!DOCTYPE >
79 | <html>
80 | <head>
81 | <body>
82
83 #data
84 <!---x
85 #errors
86 Line: 1 Col: 6 Unexpected end of file in comment.
87 Line: 1 Col: 6 Unexpected End of file. Expected DOCTYPE.
88 #document
89 | <!-- -x -->
90 | <html>
91 | <head>
92 | <body>
93
94 #data
95 <body>
96 <div>
97 #errors
98 Line: 1 Col: 6 Unexpected start tag (body).
99 Line: 2 Col: 5 Expected closing tag. Unexpected end of file.
100 #document-fragment
101 div
102 #document
103 | "
104 "
105 | <div>
106
107 #data
108 <frameset></frameset>
109 foo
110 #errors
111 Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
112 Line: 2 Col: 3 Unexpected non-space characters in the after frameset phase. Ignored.
113 #document
114 | <html>
115 | <head>
116 | <frameset>
117 | "
118 "
119
120 #data
121 <frameset></frameset>
122 <noframes>
123 #errors
124 Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
125 Line: 2 Col: 10 Expected closing tag. Unexpected end of file.
126 #document
127 | <html>
128 | <head>
129 | <frameset>
130 | "
131 "
132 | <noframes>
133
134 #data
135 <frameset></frameset>
136 <div>
137 #errors
138 Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
139 Line: 2 Col: 5 Unexpected start tag (div) in the after frameset phase. Ignored.
140 #document
141 | <html>
142 | <head>
143 | <frameset>
144 | "
145 "
146
147 #data
148 <frameset></frameset>
149 </html>
150 #errors
151 Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
152 #document
153 | <html>
154 | <head>
155 | <frameset>
156 | "
157 "
158
159 #data
160 <frameset></frameset>
161 </div>
162 #errors
163 Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
164 Line: 2 Col: 6 Unexpected end tag (div) in the after frameset phase. Ignored.
165 #document
166 | <html>
167 | <head>
168 | <frameset>
169 | "
170 "
171
172 #data
173 <form><form>
174 #errors
175 Line: 1 Col: 6 Unexpected start tag (form). Expected DOCTYPE.
176 Line: 1 Col: 12 Unexpected start tag (form).
177 Line: 1 Col: 12 Expected closing tag. Unexpected end of file.
178 #document
179 | <html>
180 | <head>
181 | <body>
182 | <form>
183
184 #data
185 <button><button>
186 #errors
187 Line: 1 Col: 8 Unexpected start tag (button). Expected DOCTYPE.
188 Line: 1 Col: 16 Unexpected start tag (button) implies end tag (button).
189 Line: 1 Col: 16 Expected closing tag. Unexpected end of file.
190 #document
191 | <html>
192 | <head>
193 | <body>
194 | <button>
195 | <button>
196
197 #data
198 <table><tr><td></th>
199 #errors
200 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
201 Line: 1 Col: 20 Unexpected end tag (th). Ignored.
202 Line: 1 Col: 20 Expected closing tag. Unexpected end of file.
203 #document
204 | <html>
205 | <head>
206 | <body>
207 | <table>
208 | <tbody>
209 | <tr>
210 | <td>
211
212 #data
213 <table><caption><td>
214 #errors
215 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
216 Line: 1 Col: 20 Unexpected end tag (td). Ignored.
217 Line: 1 Col: 20 Unexpected table cell start tag (td) in the table body phase.
218 Line: 1 Col: 20 Expected closing tag. Unexpected end of file.
219 #document
220 | <html>
221 | <head>
222 | <body>
223 | <table>
224 | <caption>
225 | <tbody>
226 | <tr>
227 | <td>
228
229 #data
230 <table><caption><div>
231 #errors
232 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
233 Line: 1 Col: 21 Expected closing tag. Unexpected end of file.
234 #document
235 | <html>
236 | <head>
237 | <body>
238 | <table>
239 | <caption>
240 | <div>
241
242 #data
243 </caption><div>
244 #errors
245 Line: 1 Col: 10 Unexpected end tag (caption). Ignored.
246 Line: 1 Col: 15 Expected closing tag. Unexpected end of file.
247 #document-fragment
248 caption
249 #document
250 | <div>
251
252 #data
253 <table><caption><div></caption>
254 #errors
255 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
256 Line: 1 Col: 31 Unexpected end tag (caption). Missing end tag (div).
257 Line: 1 Col: 31 Expected closing tag. Unexpected end of file.
258 #document
259 | <html>
260 | <head>
261 | <body>
262 | <table>
263 | <caption>
264 | <div>
265
266 #data
267 <table><caption></table>
268 #errors
269 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
270 Line: 1 Col: 24 Unexpected end table tag in caption. Generates implied end caption.
271 #document
272 | <html>
273 | <head>
274 | <body>
275 | <table>
276 | <caption>
277
278 #data
279 </table><div>
280 #errors
281 Line: 1 Col: 8 Unexpected end table tag in caption. Generates implied end caption.
282 Line: 1 Col: 8 Unexpected end tag (caption). Ignored.
283 Line: 1 Col: 13 Expected closing tag. Unexpected end of file.
284 #document-fragment
285 caption
286 #document
287 | <div>
288
289 #data
290 <table><caption></body></col></colgroup></html></tbody></td></tfoot></th></thead></tr>
291 #errors
292 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
293 Line: 1 Col: 23 Unexpected end tag (body). Ignored.
294 Line: 1 Col: 29 Unexpected end tag (col). Ignored.
295 Line: 1 Col: 40 Unexpected end tag (colgroup). Ignored.
296 Line: 1 Col: 47 Unexpected end tag (html). Ignored.
297 Line: 1 Col: 55 Unexpected end tag (tbody). Ignored.
298 Line: 1 Col: 60 Unexpected end tag (td). Ignored.
299 Line: 1 Col: 68 Unexpected end tag (tfoot). Ignored.
300 Line: 1 Col: 73 Unexpected end tag (th). Ignored.
301 Line: 1 Col: 81 Unexpected end tag (thead). Ignored.
302 Line: 1 Col: 86 Unexpected end tag (tr). Ignored.
303 Line: 1 Col: 86 Expected closing tag. Unexpected end of file.
304 #document
305 | <html>
306 | <head>
307 | <body>
308 | <table>
309 | <caption>
310
311 #data
312 <table><caption><div></div>
313 #errors
314 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
315 Line: 1 Col: 27 Expected closing tag. Unexpected end of file.
316 #document
317 | <html>
318 | <head>
319 | <body>
320 | <table>
321 | <caption>
322 | <div>
323
324 #data
325 <table><tr><td></body></caption></col></colgroup></html>
326 #errors
327 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
328 Line: 1 Col: 22 Unexpected end tag (body). Ignored.
329 Line: 1 Col: 32 Unexpected end tag (caption). Ignored.
330 Line: 1 Col: 38 Unexpected end tag (col). Ignored.
331 Line: 1 Col: 49 Unexpected end tag (colgroup). Ignored.
332 Line: 1 Col: 56 Unexpected end tag (html). Ignored.
333 Line: 1 Col: 56 Expected closing tag. Unexpected end of file.
334 #document
335 | <html>
336 | <head>
337 | <body>
338 | <table>
339 | <tbody>
340 | <tr>
341 | <td>
342
343 #data
344 </table></tbody></tfoot></thead></tr><div>
345 #errors
346 Line: 1 Col: 8 Unexpected end tag (table). Ignored.
347 Line: 1 Col: 16 Unexpected end tag (tbody). Ignored.
348 Line: 1 Col: 24 Unexpected end tag (tfoot). Ignored.
349 Line: 1 Col: 32 Unexpected end tag (thead). Ignored.
350 Line: 1 Col: 37 Unexpected end tag (tr). Ignored.
351 Line: 1 Col: 42 Expected closing tag. Unexpected end of file.
352 #document-fragment
353 td
354 #document
355 | <div>
356
357 #data
358 <table><colgroup>foo
359 #errors
360 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
361 Line: 1 Col: 20 Unexpected non-space characters in table context caused voodoo mode.
362 Line: 1 Col: 20 Expected closing tag. Unexpected end of file.
363 #document
364 | <html>
365 | <head>
366 | <body>
367 | "foo"
368 | <table>
369 | <colgroup>
370
371 #data
372 foo<col>
373 #errors
374 Line: 1 Col: 3 Unexpected end tag (colgroup). Ignored.
375 #document-fragment
376 colgroup
377 #document
378 | <col>
379
380 #data
381 <table><colgroup></col>
382 #errors
383 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
384 Line: 1 Col: 23 This element (col) has no end tag.
385 Line: 1 Col: 23 Expected closing tag. Unexpected end of file.
386 #document
387 | <html>
388 | <head>
389 | <body>
390 | <table>
391 | <colgroup>
392
393 #data
394 <frameset><div>
395 #errors
396 Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
397 Line: 1 Col: 15 Unexpected start tag token (div) in the frameset phase. Ignored.
398 Line: 1 Col: 15 Expected closing tag. Unexpected end of file.
399 #document
400 | <html>
401 | <head>
402 | <frameset>
403
404 #data
405 </frameset><frame>
406 #errors
407 Line: 1 Col: 11 Unexpected end tag token (frameset) in the frameset phase (innerHTML).
408 #document-fragment
409 frameset
410 #document
411 | <frame>
412
413 #data
414 <frameset></div>
415 #errors
416 Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
417 Line: 1 Col: 16 Unexpected end tag token (div) in the frameset phase. Ignored.
418 Line: 1 Col: 16 Expected closing tag. Unexpected end of file.
419 #document
420 | <html>
421 | <head>
422 | <frameset>
423
424 #data
425 </body><div>
426 #errors
427 Line: 1 Col: 7 Unexpected end tag (body). Ignored.
428 Line: 1 Col: 12 Expected closing tag. Unexpected end of file.
429 #document-fragment
430 body
431 #document
432 | <div>
433
434 #data
435 <table><tr><div>
436 #errors
437 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
438 Line: 1 Col: 16 Unexpected start tag (div) in table context caused voodoo mode.
439 Line: 1 Col: 16 Expected closing tag. Unexpected end of file.
440 #document
441 | <html>
442 | <head>
443 | <body>
444 | <div>
445 | <table>
446 | <tbody>
447 | <tr>
448
449 #data
450 </tr><td>
451 #errors
452 Line: 1 Col: 5 Unexpected end tag (tr). Ignored.
453 #document-fragment
454 tr
455 #document
456 | <td>
457
458 #data
459 </tbody></tfoot></thead><td>
460 #errors
461 Line: 1 Col: 8 Unexpected end tag (tbody). Ignored.
462 Line: 1 Col: 16 Unexpected end tag (tfoot). Ignored.
463 Line: 1 Col: 24 Unexpected end tag (thead). Ignored.
464 #document-fragment
465 tr
466 #document
467 | <td>
468
469 #data
470 <table><tr><div><td>
471 #errors
472 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
473 Line: 1 Col: 16 Unexpected start tag (div) in table context caused voodoo mode.
474 Line: 1 Col: 20 Unexpected implied end tag (div) in the table row phase.
475 Line: 1 Col: 20 Expected closing tag. Unexpected end of file.
476 #document
477 | <html>
478 | <head>
479 | <body>
480 | <div>
481 | <table>
482 | <tbody>
483 | <tr>
484 | <td>
485
486 #data
487 <caption><col><colgroup><tbody><tfoot><thead><tr>
488 #errors
489 Line: 1 Col: 9 Unexpected start tag (caption).
490 Line: 1 Col: 14 Unexpected start tag (col).
491 Line: 1 Col: 24 Unexpected start tag (colgroup).
492 Line: 1 Col: 31 Unexpected start tag (tbody).
493 Line: 1 Col: 38 Unexpected start tag (tfoot).
494 Line: 1 Col: 45 Unexpected start tag (thead).
495 #document-fragment
496 tbody
497 #document
498 | <tr>
499
500 #data
501 <table><tbody></thead>
502 #errors
503 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
504 Line: 1 Col: 22 Unexpected end tag (thead) in the table body phase. Ignored.
505 Line: 1 Col: 22 Expected closing tag. Unexpected end of file.
506 #document
507 | <html>
508 | <head>
509 | <body>
510 | <table>
511 | <tbody>
512
513 #data
514 </table><tr>
515 #errors
516 Line: 1 Col: 8 Unexpected end tag (table). Ignored.
517 Line: 1 Col: 12 Unexpected end of file. Expected table content.
518 #document-fragment
519 tbody
520 #document
521 | <tr>
522
523 #data
524 <table><tbody></body></caption></col></colgroup></html></td></th></tr>
525 #errors
526 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
527 Line: 1 Col: 21 Unexpected end tag (body) in the table body phase. Ignored.
528 Line: 1 Col: 31 Unexpected end tag (caption) in the table body phase. Ignored.
529 Line: 1 Col: 37 Unexpected end tag (col) in the table body phase. Ignored.
530 Line: 1 Col: 48 Unexpected end tag (colgroup) in the table body phase. Ignored.
531 Line: 1 Col: 55 Unexpected end tag (html) in the table body phase. Ignored.
532 Line: 1 Col: 60 Unexpected end tag (td) in the table body phase. Ignored.
533 Line: 1 Col: 65 Unexpected end tag (th) in the table body phase. Ignored.
534 Line: 1 Col: 70 Unexpected end tag (tr) in the table body phase. Ignored.
535 Line: 1 Col: 70 Expected closing tag. Unexpected end of file.
536 #document
537 | <html>
538 | <head>
539 | <body>
540 | <table>
541 | <tbody>
542
543 #data
544 <table><tbody></div>
545 #errors
546 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
547 Line: 1 Col: 20 Unexpected end tag (div) in table context caused voodoo mode.
548 Line: 1 Col: 20 End tag (div) seen too early. Expected other end tag.
549 Line: 1 Col: 20 Expected closing tag. Unexpected end of file.
550 #document
551 | <html>
552 | <head>
553 | <body>
554 | <table>
555 | <tbody>
556
557 #data
558 <table><table>
559 #errors
560 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
561 Line: 1 Col: 14 Unexpected start tag (table) implies end tag (table).
562 Line: 1 Col: 14 Expected closing tag. Unexpected end of file.
563 #document
564 | <html>
565 | <head>
566 | <body>
567 | <table>
568 | <table>
569
570 #data
571 <table></body></caption></col></colgroup></html></tbody></td></tfoot></th></thead></tr>
572 #errors
573 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
574 Line: 1 Col: 14 Unexpected end tag (body). Ignored.
575 Line: 1 Col: 24 Unexpected end tag (caption). Ignored.
576 Line: 1 Col: 30 Unexpected end tag (col). Ignored.
577 Line: 1 Col: 41 Unexpected end tag (colgroup). Ignored.
578 Line: 1 Col: 48 Unexpected end tag (html). Ignored.
579 Line: 1 Col: 56 Unexpected end tag (tbody). Ignored.
580 Line: 1 Col: 61 Unexpected end tag (td). Ignored.
581 Line: 1 Col: 69 Unexpected end tag (tfoot). Ignored.
582 Line: 1 Col: 74 Unexpected end tag (th). Ignored.
583 Line: 1 Col: 82 Unexpected end tag (thead). Ignored.
584 Line: 1 Col: 87 Unexpected end tag (tr). Ignored.
585 Line: 1 Col: 87 Expected closing tag. Unexpected end of file.
586 #document
587 | <html>
588 | <head>
589 | <body>
590 | <table>
591
592 #data
593 </table><tr>
594 #errors
595 Line: 1 Col: 8 Unexpected end tag (table). Ignored.
596 Line: 1 Col: 12 Expected closing tag. Unexpected end of file.
597 #document-fragment
598 table
599 #document
600 | <tbody>
601 | <tr>
602
603 #data
604 <html></html><!-- foo -->
605 #errors
606 6: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
607 13: Stray end tag “html”.
608 #document
609 | <html>
610 | <!-- foo -->
611 | <head>
612 | <body>
613
614 #data
615 <body></body></html>
616 #errors
617 Line: 1 Col: 20 Unexpected html end tag in inner html mode.
618 Line: 1 Col: 20 Unexpected EOF in inner html mode.
619 #document-fragment
620 html
621 #document
622 | <head>
623 | <body>
624
625 #data
626 <html><frameset></frameset></html>
627 #errors
628 Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
629 #document
630 | <html>
631 | <head>
632 | <frameset>
633 | " "
634
635 #data
636 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"><html></html>
637 #errors
638 doctype-error
639 #document
640 | <!DOCTYPE html "-//W3C//DTD HTML 4.01//EN" "">
641 | <html>
642 | <head>
643 | <body>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24