/[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.2 - (show annotations) (download)
Sat Jun 23 02:26:52 2007 UTC (18 years ago) by wakaba
Branch: MAIN
Changes since 1.1: +43 -46 lines
++ whatpm/t/ChangeLog	23 Jun 2007 02:21:24 -0000
2007-06-23  Wakaba  <wakaba@suika.fam.cx>

	* Makefile, HTML-tokenizer.t, HTML-tree.t: New test
	files are added.

	* tokenize/, tree-construction/: Sync with latest html5lib
	trunk.

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24