/[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.6 - (show annotations) (download)
Fri Mar 7 00:31:24 2008 UTC (17 years, 4 months ago) by wakaba
Branch: MAIN
Changes since 1.5: +2 -6 lines
html5lib tests updated

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 Line: 1 Col: 68 Unexpected select start tag in the select phase implies select start tag.
458 Line: 1 Col: 76 Unexpected start tag option. Ignored.
459 #document
460 | <!DOCTYPE HTML>
461 | <html>
462 | <head>
463 | <body>
464 | <select>
465 | <optgroup>
466 | <option>
467 | <option>
468
469 #data
470 <!DOCTYPE HTML><select><optgroup><option><optgroup>
471 #errors
472 Line: 1 Col: 51 Expected closing tag. Unexpected end of file.
473 #document
474 | <!DOCTYPE HTML>
475 | <html>
476 | <head>
477 | <body>
478 | <select>
479 | <optgroup>
480 | <option>
481 | <optgroup>
482
483 #data
484 <!DOCTYPE HTML><font><input><input></font>
485 #errors
486 #document
487 | <!DOCTYPE HTML>
488 | <html>
489 | <head>
490 | <body>
491 | <font>
492 | <input>
493 | <input>
494
495 #data
496 <!DOCTYPE HTML><!-- XXX - XXX -->
497 #errors
498 #document
499 | <!DOCTYPE HTML>
500 | <!-- XXX - XXX -->
501 | <html>
502 | <head>
503 | <body>
504
505 #data
506 <!DOCTYPE HTML><!-- XXX - XXX
507 #errors
508 Line: 1 Col: 29 Unexpected end of file in comment (-)
509 #document
510 | <!DOCTYPE HTML>
511 | <!-- XXX - XXX -->
512 | <html>
513 | <head>
514 | <body>
515
516 #data
517 <!DOCTYPE HTML><!-- XXX - XXX - XXX -->
518 #errors
519 #document
520 | <!DOCTYPE HTML>
521 | <!-- XXX - XXX - XXX -->
522 | <html>
523 | <head>
524 | <body>
525
526 #data
527 <isindex test=x name=x>
528 #errors
529 Line: 1 Col: 23 Unexpected start tag (isindex). Expected DOCTYPE.
530 Line: 1 Col: 23 Unexpected start tag isindex. Don't use it!
531 #document
532 | <html>
533 | <head>
534 | <body>
535 | <form>
536 | <hr>
537 | <p>
538 | <label>
539 | "This is a searchable index. Insert your search keywords here: "
540 | <input>
541 | name="isindex"
542 | test="x"
543 | <hr>
544
545 #data
546 test
547 test
548 #errors
549 Line: 2 Col: 4 Unexpected non-space characters. Expected DOCTYPE.
550 #document
551 | <html>
552 | <head>
553 | <body>
554 | "test
555 test"
556
557 #data
558 <p><b><i><u></p>
559 <p>X
560 #errors
561 Line: 1 Col: 3 Unexpected start tag (p). Expected DOCTYPE.
562 Line: 1 Col: 16 Unexpected end tag (p). Ignored.
563 Line: 2 Col: 4 Expected closing tag. Unexpected end of file.
564 #document
565 | <html>
566 | <head>
567 | <body>
568 | <p>
569 | <b>
570 | <i>
571 | <u>
572 | <b>
573 | <i>
574 | <u>
575 | "
576 "
577 | <p>
578 | "X"
579
580 #data
581 <!DOCTYPE HTML><body><title>test</body></title>
582 #errors
583 #document
584 | <!DOCTYPE HTML>
585 | <html>
586 | <head>
587 | <body>
588 | <title>
589 | "test</body>"
590
591 #data
592 <!DOCTYPE HTML><body><title>X</title><meta name=z><link rel=foo><style>
593 x { content:"</style" } </style>
594 #errors
595 #document
596 | <!DOCTYPE HTML>
597 | <html>
598 | <head>
599 | <body>
600 | <title>
601 | "X"
602 | <meta>
603 | name="z"
604 | <link>
605 | rel="foo"
606 | <style>
607 | "
608 x { content:"</style" } "
609
610 #data
611 <!DOCTYPE HTML><select><optgroup></optgroup></select>
612 #errors
613 #document
614 | <!DOCTYPE HTML>
615 | <html>
616 | <head>
617 | <body>
618 | <select>
619 | <optgroup>
620
621 #data
622
623
624 #errors
625 Line: 2 Col: 1 Unexpected End of file. Expected DOCTYPE.
626 #document
627 | <html>
628 | <head>
629 | <body>
630
631 #data
632 <!DOCTYPE HTML> <html>
633 #errors
634 #document
635 | <!DOCTYPE HTML>
636 | <html>
637 | <head>
638 | <body>
639
640 #data
641 <!DOCTYPE HTML><script>
642 </script> <title>x</title> </head>
643 #errors
644 #document
645 | <!DOCTYPE HTML>
646 | <html>
647 | <head>
648 | <script>
649 | "
650 "
651 | " "
652 | <title>
653 | "x"
654 | " "
655 | <body>
656
657 #data
658 <!DOCTYPE HTML><html><body><html id=x>
659 #errors
660 Line: 1 Col: 38 html needs to be the first start tag.
661 #document
662 | <!DOCTYPE HTML>
663 | <html>
664 | id="x"
665 | <head>
666 | <body>
667
668 #data
669 <!DOCTYPE HTML>X</body><html id="x">
670 #errors
671 Line: 1 Col: 36 Unexpected start tag token (html) in the after body phase.
672 Line: 1 Col: 36 html needs to be the first start tag.
673 #document
674 | <!DOCTYPE HTML>
675 | <html>
676 | id="x"
677 | <head>
678 | <body>
679 | "X"
680
681 #data
682 <!DOCTYPE HTML><head><html id=x>
683 #errors
684 Line: 1 Col: 32 html needs to be the first start tag.
685 #document
686 | <!DOCTYPE HTML>
687 | <html>
688 | id="x"
689 | <head>
690 | <body>
691
692 #data
693 <!DOCTYPE HTML>X</html>X
694 #errors
695 Line: 1 Col: 24 Unexpected non-space characters. Expected end of file.
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 (p). Expected end of file.
718 Line: 1 Col: 26 Unexpected start tag token (p) in the after body phase.
719 #document
720 | <!DOCTYPE HTML>
721 | <html>
722 | <head>
723 | <body>
724 | "X"
725 | <p>
726 | "X"
727
728 #data
729 <!DOCTYPE HTML>X<p/x/y/z>
730 #errors
731 Line: 1 Col: 19 Solidus (/) incorrectly placed in tag.
732 Line: 1 Col: 21 Solidus (/) incorrectly placed in tag.
733 Line: 1 Col: 23 Solidus (/) incorrectly placed in tag.
734 #document
735 | <!DOCTYPE HTML>
736 | <html>
737 | <head>
738 | <body>
739 | "X"
740 | <p>
741 | x=""
742 | y=""
743 | z=""
744
745 #data
746 <!DOCTYPE HTML><!--x--
747 #errors
748 Line: 1 Col: 22 Unexpected end of file in comment (--).
749 #document
750 | <!DOCTYPE HTML>
751 | <!-- x -->
752 | <html>
753 | <head>
754 | <body>
755
756 #data
757 <!DOCTYPE HTML><table><tr><td></p></table>
758 #errors
759 Line: 1 Col: 34 Unexpected end tag (p). Ignored.
760 #document
761 | <!DOCTYPE HTML>
762 | <html>
763 | <head>
764 | <body>
765 | <table>
766 | <tbody>
767 | <tr>
768 | <td>
769 | <p>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24