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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (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.7: +20 -6 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>Test
3 #errors
4 #document
5 | <!DOCTYPE html>
6 | <html>
7 | <head>
8 | <body>
9 | "Test"
10
11 #data
12 <textarea>test</div>test
13 #errors
14 Line: 1 Col: 10 Unexpected start tag (textarea). Expected DOCTYPE.
15 Line: 1 Col: 24 Expected closing tag. Unexpected end of file.
16 #document
17 | <html>
18 | <head>
19 | <body>
20 | <textarea>
21 | "test</div>test"
22
23 #data
24 <table><td>
25 #errors
26 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
27 Line: 1 Col: 11 Unexpected table cell start tag (td) in the table body phase.
28 Line: 1 Col: 11 Expected closing tag. Unexpected end of file.
29 #document
30 | <html>
31 | <head>
32 | <body>
33 | <table>
34 | <tbody>
35 | <tr>
36 | <td>
37
38 #data
39 <table><td>test</tbody></table>
40 #errors
41 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
42 Line: 1 Col: 11 Unexpected table cell start tag (td) in the table body phase.
43 #document
44 | <html>
45 | <head>
46 | <body>
47 | <table>
48 | <tbody>
49 | <tr>
50 | <td>
51 | "test"
52
53 #data
54 <frame>test
55 #errors
56 Line: 1 Col: 7 Unexpected start tag (frame). Expected DOCTYPE.
57 Line: 1 Col: 7 Unexpected start tag frame. Ignored.
58 #document
59 | <html>
60 | <head>
61 | <body>
62 | "test"
63
64 #data
65 <!DOCTYPE html><frameset>test
66 #errors
67 Line: 1 Col: 29 Unepxected characters in the frameset phase. Characters ignored.
68 Line: 1 Col: 29 Expected closing tag. Unexpected end of file.
69 #document
70 | <!DOCTYPE html>
71 | <html>
72 | <head>
73 | <frameset>
74
75 #data
76 <!DOCTYPE html><frameset><!DOCTYPE html>
77 #errors
78 Line: 1 Col: 40 Unexpected DOCTYPE. Ignored.
79 Line: 1 Col: 40 Expected closing tag. Unexpected end of file.
80 #document
81 | <!DOCTYPE html>
82 | <html>
83 | <head>
84 | <frameset>
85
86 #data
87 <!DOCTYPE html><font><p><b>test</font>
88 #errors
89 Line: 1 Col: 38 End tag (font) violates step 1, paragraph 3 of the adoption agency algorithm.
90 Line: 1 Col: 38 End tag (font) violates step 1, paragraph 3 of the adoption agency algorithm.
91 #document
92 | <!DOCTYPE html>
93 | <html>
94 | <head>
95 | <body>
96 | <font>
97 | <p>
98 | <font>
99 | <b>
100 | "test"
101
102 #data
103 <!DOCTYPE html><dt><div><dd>
104 #errors
105 Line: 1 Col: 28 Missing end tag (div, dt).
106 #document
107 | <!DOCTYPE html>
108 | <html>
109 | <head>
110 | <body>
111 | <dt>
112 | <div>
113 | <dd>
114
115 #data
116 <script></x
117 #errors
118 Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
119 Line: 1 Col: 11 Unexpected end of file. Expected end tag (script).
120 #document
121 | <html>
122 | <head>
123 | <script>
124 | "</x"
125 | <body>
126
127 #data
128 <table><plaintext><td>
129 #errors
130 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
131 Line: 1 Col: 18 Unexpected start tag (plaintext) in table context caused voodoo mode.
132 Line: 1 Col: 22 Expected closing tag. Unexpected end of file.
133 #document
134 | <html>
135 | <head>
136 | <body>
137 | <plaintext>
138 | "<td>"
139 | <table>
140
141 #data
142 <plaintext></plaintext>
143 #errors
144 Line: 1 Col: 11 Unexpected start tag (plaintext). Expected DOCTYPE.
145 Line: 1 Col: 23 Expected closing tag. Unexpected end of file.
146 #document
147 | <html>
148 | <head>
149 | <body>
150 | <plaintext>
151 | "</plaintext>"
152
153 #data
154 <!DOCTYPE html><table><tr>TEST
155 #errors
156 Line: 1 Col: 30 Unexpected non-space characters in table context caused voodoo mode.
157 Line: 1 Col: 30 Expected closing tag. Unexpected end of file.
158 #document
159 | <!DOCTYPE html>
160 | <html>
161 | <head>
162 | <body>
163 | "TEST"
164 | <table>
165 | <tbody>
166 | <tr>
167
168 #data
169 <!DOCTYPE html><body t1=1><body t2=2><body t3=3 t4=4>
170 #errors
171 Line: 1 Col: 37 Unexpected start tag (body).
172 Line: 1 Col: 53 Unexpected start tag (body).
173 #document
174 | <!DOCTYPE html>
175 | <html>
176 | <head>
177 | <body>
178 | t1="1"
179 | t2="2"
180 | t3="3"
181 | t4="4"
182
183 #data
184 </b test
185 #errors
186 Line: 1 Col: 8 Unexpected end of file in attribute name.
187 Line: 1 Col: 8 End tag contains unexpected attributes.
188 Line: 1 Col: 8 Unexpected end tag (b). Expected DOCTYPE.
189 Line: 1 Col: 8 Unexpected end tag (b) after the (implied) root element.
190 #document
191 | <html>
192 | <head>
193 | <body>
194
195 #data
196 <!DOCTYPE html></b test<b &=&amp>X
197 #errors
198 Line: 1 Col: 32 Named entity didn't end with ';'.
199 Line: 1 Col: 33 End tag contains unexpected attributes.
200 Line: 1 Col: 33 Unexpected end tag (b) after the (implied) root element.
201 #document
202 | <!DOCTYPE html>
203 | <html>
204 | <head>
205 | <body>
206 | "X"
207
208 #data
209 <!doctypehtml><scrIPt type=text/x-foobar;baz>X</SCRipt
210 #errors
211 Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
212 Line: 1 Col: 54 Unexpected end of file in the tag name.
213 #document
214 | <!DOCTYPE html>
215 | <html>
216 | <head>
217 | <script>
218 | type="text/x-foobar;baz"
219 | "X"
220 | <body>
221
222 #data
223 &
224 #errors
225 Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
226 #document
227 | <html>
228 | <head>
229 | <body>
230 | "&"
231
232 #data
233 &#
234 #errors
235 Line: 1 Col: 1 Numeric entity expected. Got end of file instead.
236 Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
237 #document
238 | <html>
239 | <head>
240 | <body>
241 | "&#"
242
243 #data
244 &#X
245 #errors
246 Line: 1 Col: 3 Numeric entity expected but none found.
247 Line: 1 Col: 3 Unexpected non-space characters. Expected DOCTYPE.
248 #document
249 | <html>
250 | <head>
251 | <body>
252 | "&#X"
253
254 #data
255 &#x
256 #errors
257 Line: 1 Col: 3 Numeric entity expected but none found.
258 Line: 1 Col: 3 Unexpected non-space characters. Expected DOCTYPE.
259 #document
260 | <html>
261 | <head>
262 | <body>
263 | "&#x"
264
265 #data
266 &#45
267 #errors
268 Line: 1 Col: 4 Numeric entity didn't end with ';'.
269 Line: 1 Col: 4 Unexpected non-space characters. Expected DOCTYPE.
270 #document
271 | <html>
272 | <head>
273 | <body>
274 | "-"
275
276 #data
277 &x-test
278 #errors
279 Line: 1 Col: 1 Named entity expected. Got none.
280 Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
281 #document
282 | <html>
283 | <head>
284 | <body>
285 | "&x-test"
286
287 #data
288 <!doctypehtml><p><li>
289 #errors
290 Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
291 #document
292 | <!DOCTYPE html>
293 | <html>
294 | <head>
295 | <body>
296 | <p>
297 | <li>
298
299 #data
300 <!doctypehtml><p><dt>
301 #errors
302 Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
303 #document
304 | <!DOCTYPE html>
305 | <html>
306 | <head>
307 | <body>
308 | <p>
309 | <dt>
310
311 #data
312 <!doctypehtml><p><dd>
313 #errors
314 Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
315 #document
316 | <!DOCTYPE html>
317 | <html>
318 | <head>
319 | <body>
320 | <p>
321 | <dd>
322
323 #data
324 <!doctypehtml><p><form>
325 #errors
326 Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
327 Line: 1 Col: 23 Expected closing tag. Unexpected end of file.
328 #document
329 | <!DOCTYPE html>
330 | <html>
331 | <head>
332 | <body>
333 | <p>
334 | <form>
335
336 #data
337 <!DOCTYPE html><p><b><i><u></p> <p>X
338 #errors
339 Line: 1 Col: 31 Unexpected end tag (p). Ignored.
340 Line: 1 Col: 36 Expected closing tag. Unexpected end of file.
341 #document
342 | <!DOCTYPE html>
343 | <html>
344 | <head>
345 | <body>
346 | <p>
347 | <b>
348 | <i>
349 | <u>
350 | <b>
351 | <i>
352 | <u>
353 | " "
354 | <p>
355 | "X"
356
357 #data
358 <!DOCTYPE html><p></P>X
359 #errors
360 #document
361 | <!DOCTYPE html>
362 | <html>
363 | <head>
364 | <body>
365 | <p>
366 | "X"
367
368 #data
369 &AMP
370 #errors
371 Line: 1 Col: 4 Named entity didn't end with ';'.
372 Line: 1 Col: 4 Unexpected non-space characters. Expected DOCTYPE.
373 #document
374 | <html>
375 | <head>
376 | <body>
377 | "&"
378
379 #data
380 &AMp;
381 #errors
382 Line: 1 Col: 1 Named entity expected. Got none.
383 Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
384 #document
385 | <html>
386 | <head>
387 | <body>
388 | "&AMp;"
389
390 #data
391 <!DOCTYPE html><html><head></head><body><thisISasillyTESTelementNameToMakeSureCrazyTagNamesArePARSEDcorrectLY>
392 #errors
393 Line: 1 Col: 110 Expected closing tag. Unexpected end of file.
394 #document
395 | <!DOCTYPE html>
396 | <html>
397 | <head>
398 | <body>
399 | <thisisasillytestelementnametomakesurecrazytagnamesareparsedcorrectly>
400
401 #data
402 <!DOCTYPE html>X</body>X
403 #errors
404 Line: 1 Col: 24 Unexpected non-space characters in the after body phase.
405 #document
406 | <!DOCTYPE html>
407 | <html>
408 | <head>
409 | <body>
410 | "XX"
411
412 #data
413 <!DOCTYPE html><!-- X
414 #errors
415 Line: 1 Col: 21 Unexpected end of file in comment.
416 #document
417 | <!DOCTYPE html>
418 | <!-- X -->
419 | <html>
420 | <head>
421 | <body>
422
423 #data
424 <!DOCTYPE html><table><caption>test TEST</caption><td>test
425 #errors
426 Line: 1 Col: 54 Unexpected table cell start tag (td) in the table body phase.
427 Line: 1 Col: 58 Expected closing tag. Unexpected end of file.
428 #document
429 | <!DOCTYPE html>
430 | <html>
431 | <head>
432 | <body>
433 | <table>
434 | <caption>
435 | "test TEST"
436 | <tbody>
437 | <tr>
438 | <td>
439 | "test"
440
441 #data
442 <!DOCTYPE html><select><option><optgroup>
443 #errors
444 Line: 1 Col: 41 Expected closing tag. Unexpected end of file.
445 #document
446 | <!DOCTYPE html>
447 | <html>
448 | <head>
449 | <body>
450 | <select>
451 | <option>
452 | <optgroup>
453
454 #data
455 <!DOCTYPE html><select><optgroup><option></optgroup><option><select><option>
456 #errors
457 68: “select” start tag where end tag expected.
458 76: End of file seen and there were open elements.
459 #document
460 | <!DOCTYPE html>
461 | <html>
462 | <head>
463 | <body>
464 | <select>
465 | <optgroup>
466 | <option>
467 | <option>
468 | <option>
469
470 #data
471 <!DOCTYPE html><select><optgroup><option><optgroup>
472 #errors
473 Line: 1 Col: 51 Expected closing tag. Unexpected end of file.
474 #document
475 | <!DOCTYPE html>
476 | <html>
477 | <head>
478 | <body>
479 | <select>
480 | <optgroup>
481 | <option>
482 | <optgroup>
483
484 #data
485 <!DOCTYPE html><font><input><input></font>
486 #errors
487 #document
488 | <!DOCTYPE html>
489 | <html>
490 | <head>
491 | <body>
492 | <font>
493 | <input>
494 | <input>
495
496 #data
497 <!DOCTYPE html><!-- XXX - XXX -->
498 #errors
499 #document
500 | <!DOCTYPE html>
501 | <!-- XXX - XXX -->
502 | <html>
503 | <head>
504 | <body>
505
506 #data
507 <!DOCTYPE html><!-- XXX - XXX
508 #errors
509 Line: 1 Col: 29 Unexpected end of file in comment (-)
510 #document
511 | <!DOCTYPE html>
512 | <!-- XXX - XXX -->
513 | <html>
514 | <head>
515 | <body>
516
517 #data
518 <!DOCTYPE html><!-- XXX - XXX - XXX -->
519 #errors
520 #document
521 | <!DOCTYPE html>
522 | <!-- XXX - XXX - XXX -->
523 | <html>
524 | <head>
525 | <body>
526
527 #data
528 <isindex test=x name=x>
529 #errors
530 Line: 1 Col: 23 Unexpected start tag (isindex). Expected DOCTYPE.
531 Line: 1 Col: 23 Unexpected start tag isindex. Don't use it!
532 #document
533 | <html>
534 | <head>
535 | <body>
536 | <form>
537 | <hr>
538 | <p>
539 | <label>
540 | "This is a searchable index. Insert your search keywords here: "
541 | <input>
542 | name="isindex"
543 | test="x"
544 | <hr>
545
546 #data
547 test
548 test
549 #errors
550 Line: 2 Col: 4 Unexpected non-space characters. Expected DOCTYPE.
551 #document
552 | <html>
553 | <head>
554 | <body>
555 | "test
556 test"
557
558 #data
559 <p><b><i><u></p>
560 <p>X
561 #errors
562 Line: 1 Col: 3 Unexpected start tag (p). Expected DOCTYPE.
563 Line: 1 Col: 16 Unexpected end tag (p). Ignored.
564 Line: 2 Col: 4 Expected closing tag. Unexpected end of file.
565 #document
566 | <html>
567 | <head>
568 | <body>
569 | <p>
570 | <b>
571 | <i>
572 | <u>
573 | <b>
574 | <i>
575 | <u>
576 | "
577 "
578 | <p>
579 | "X"
580
581 #data
582 <!DOCTYPE html><body><title>test</body></title>
583 #errors
584 #document
585 | <!DOCTYPE html>
586 | <html>
587 | <head>
588 | <body>
589 | <title>
590 | "test</body>"
591
592 #data
593 <!DOCTYPE html><body><title>X</title><meta name=z><link rel=foo><style>
594 x { content:"</style" } </style>
595 #errors
596 #document
597 | <!DOCTYPE html>
598 | <html>
599 | <head>
600 | <body>
601 | <title>
602 | "X"
603 | <meta>
604 | name="z"
605 | <link>
606 | rel="foo"
607 | <style>
608 | "
609 x { content:"</style" } "
610
611 #data
612 <!DOCTYPE html><select><optgroup></optgroup></select>
613 #errors
614 #document
615 | <!DOCTYPE html>
616 | <html>
617 | <head>
618 | <body>
619 | <select>
620 | <optgroup>
621
622 #data
623
624
625 #errors
626 Line: 2 Col: 1 Unexpected End of file. Expected DOCTYPE.
627 #document
628 | <html>
629 | <head>
630 | <body>
631
632 #data
633 <!DOCTYPE html> <html>
634 #errors
635 #document
636 | <!DOCTYPE html>
637 | <html>
638 | <head>
639 | <body>
640
641 #data
642 <!DOCTYPE html><script>
643 </script> <title>x</title> </head>
644 #errors
645 #document
646 | <!DOCTYPE html>
647 | <html>
648 | <head>
649 | <script>
650 | "
651 "
652 | " "
653 | <title>
654 | "x"
655 | " "
656 | <body>
657
658 #data
659 <!DOCTYPE html><html><body><html id=x>
660 #errors
661 Line: 1 Col: 38 html needs to be the first start tag.
662 #document
663 | <!DOCTYPE html>
664 | <html>
665 | id="x"
666 | <head>
667 | <body>
668
669 #data
670 <!DOCTYPE html>X</body><html id="x">
671 #errors
672 Line: 1 Col: 36 Unexpected start tag token (html) in the after body phase.
673 Line: 1 Col: 36 html needs to be the first start tag.
674 #document
675 | <!DOCTYPE html>
676 | <html>
677 | id="x"
678 | <head>
679 | <body>
680 | "X"
681
682 #data
683 <!DOCTYPE html><head><html id=x>
684 #errors
685 Line: 1 Col: 32 html needs to be the first start tag.
686 #document
687 | <!DOCTYPE html>
688 | <html>
689 | id="x"
690 | <head>
691 | <body>
692
693 #data
694 <!DOCTYPE html>X</html>X
695 #errors
696 Line: 1 Col: 24 Unexpected non-space characters in the after body phase.
697 #document
698 | <!DOCTYPE html>
699 | <html>
700 | <head>
701 | <body>
702 | "XX"
703
704 #data
705 <!DOCTYPE html>X</html>
706 #errors
707 #document
708 | <!DOCTYPE html>
709 | <html>
710 | <head>
711 | <body>
712 | "X "
713
714 #data
715 <!DOCTYPE html>X</html><p>X
716 #errors
717 Line: 1 Col: 26 Unexpected start tag ().
718 #document
719 | <!DOCTYPE html>
720 | <html>
721 | <head>
722 | <body>
723 | "X"
724 | <p>
725 | "X"
726
727 #data
728 <!DOCTYPE html>X<p/x/y/z>
729 #errors
730 Line: 1 Col: 19 Expected a > after the /.
731 Line: 1 Col: 21 Solidus (/) incorrectly placed in tag.
732 Line: 1 Col: 23 Solidus (/) incorrectly placed in tag.
733 #document
734 | <!DOCTYPE html>
735 | <html>
736 | <head>
737 | <body>
738 | "X"
739 | <p>
740 | x=""
741 | y=""
742 | z=""
743
744 #data
745 <!DOCTYPE html><!--x--
746 #errors
747 Line: 1 Col: 22 Unexpected end of file in comment (--).
748 #document
749 | <!DOCTYPE html>
750 | <!-- x -->
751 | <html>
752 | <head>
753 | <body>
754
755 #data
756 <!DOCTYPE html><table><tr><td></p></table>
757 #errors
758 Line: 1 Col: 34 Unexpected end tag (p). Ignored.
759 #document
760 | <!DOCTYPE html>
761 | <html>
762 | <head>
763 | <body>
764 | <table>
765 | <tbody>
766 | <tr>
767 | <td>
768 | <p>
769
770 #data
771 <!DOCTYPE <!DOCTYPE HTML>><!--<!--x-->-->
772 #errors
773 Line: 1 Col: 20 Expected space or '>'. Got ''
774 Line: 1 Col: 25 Erroneous DOCTYPE.
775 Line: 1 Col: 35 Unexpected character in comment found.
776 #document
777 | <!DOCTYPE <!DOCTYPE>
778 | <html>
779 | <head>
780 | <body>
781 | ">"
782 | <!-- <!--x -->
783 | "-->"

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24