/[suikacvs]/markup/html/whatpm/t/tree-test-2.dat
Suika

Contents of /markup/html/whatpm/t/tree-test-2.dat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (hide annotations) (download)
Sun Sep 6 09:53:29 2009 UTC (15 years, 10 months ago) by wakaba
Branch: MAIN
Changes since 1.14: +8 -11 lines
++ whatpm/t/ChangeLog	6 Sep 2009 09:53:12 -0000
	* tree-test-1.dat, tree-test-2.dat: Some test results are updated
	as per HTML5 revision 2730's new handling of end tags in the
	|head| area.

2009-09-06  Wakaba  <wakaba@suika.fam.cx>

++ whatpm/Whatpm/ChangeLog	6 Sep 2009 09:52:24 -0000
	* HTML.pm.src: Rewrote end tag handling in |head| area (cf. HTML5
	revision 2730, but it was entirely broken, maybe I missed some
	spec changes before rev.2730).

2009-09-06  Wakaba  <wakaba@suika.fam.cx>

1 wakaba 1.1
2     #data
3     <link rel="a" href="b">
4     #errors
5     #document-fragment head
6     | <link>
7     | href="b"
8     | rel="a"
9    
10     #data
11     <meta name="a" content="b">
12     #errors
13     #document-fragment head
14     | <meta>
15     | content="b"
16     | name="a"
17    
18     #data
19     <base href="a" target="b">
20     #errors
21     #document-fragment head
22     | <base>
23     | href="a"
24     | target="b"
25    
26     #data
27     <base href="a" target="b">a
28     #errors
29     #document-fragment head
30     | <base>
31     | href="a"
32     | target="b"
33     | "a"
34    
35     #data
36     </style>
37     #errors
38     #document-fragment style
39     | "</style>"
40    
41     #data
42     </style>abc
43     #errors
44     #document-fragment style
45     | "</style>abc"
46    
47     #data
48     <style>ABC</style>abc
49     #errors
50     #document-fragment style
51     | "<style>ABC</style>abc"
52    
53     #data
54     <style>ABC</style>abc
55     #errors
56     #document-fragment div
57     | <style>
58     | "ABC"
59     | "abc"
60    
61     #data
62     </stylesheet
63     #errors
64     #document-fragment style
65     | "</stylesheet"
66    
67     #data
68     </title>
69     #errors
70     #document-fragment title
71     | "</title>"
72    
73     #data
74     </title>abc
75     #errors
76     #document-fragment title
77     | "</title>abc"
78    
79     #data
80     </titletext
81     #errors
82     #document-fragment title
83     | "</titletext"
84    
85     #data
86     <table><tr><td><table></table>
87     #errors
88     outer <table> not closed
89     #document-fragment div
90     | <table>
91     | <tbody>
92     | <tr>
93     | <td>
94     | <table>
95    
96     #data
97     <table><caption><table></table><tr><td>
98     #errors
99     outer <table> not closed
100     <caption> not closed
101     #document-fragment div
102     | <table>
103     | <caption>
104     | <table>
105     | <tbody>
106     | <tr>
107     | <td>
108    
109 wakaba 1.2 #data
110     <title>a</title>
111     #errors
112     #document-fragment p
113     | <title>
114     | "a"
115    
116     #data
117     <table><title>a</title></table>
118     #errors
119     <title> in table
120     #document-fragment div
121     | <title>
122     | "a"
123     | <table>
124    
125     #data
126     <title>a</title>
127     #errors
128     <title> in table
129     #document-fragment table
130     | <title>
131     | "a"
132 wakaba 1.3
133     #data
134 wakaba 1.6 </table>
135     #errors
136     </table> in <caption>
137     </caption> implied by </table> is ignored
138     #document-fragment caption
139    
140     #data
141     <tbody>
142     #errors
143     <tbody> in <caption>
144     </caption> implied by <tbody> is ignored
145     #document-fragment caption
146    
147     #data
148     <tbody>a
149     #errors
150     <tbody> in <caption>
151     </caption> implied by <tbody> is ignored
152     #document-fragment caption
153     | "a"
154    
155     #data
156     <caption>x
157     #errors
158     <caption> in <caption>
159     </caption> implied by <caption> is ignored
160     #document-fragment caption
161     | "x"
162    
163     #data
164     <tr>
165     #errors
166     <tr> in <caption>
167     </caption> implied by <tr> is ignored
168     #document-fragment caption
169    
170     #data
171     <tr>x
172     #errors
173     <tr> in <caption>
174     </caption> implied by <tr> is ignored
175     #document-fragment caption
176     | "x"
177    
178     #data
179     <td>
180     #errors
181     <td> in <caption>
182     </caption> implied by <td> is ignored
183     #document-fragment caption
184    
185     #data
186     <td>x
187     #errors
188     <td> in <caption>
189     </caption> implied by <td> is ignored
190     #document-fragment caption
191     | "x"
192    
193     #data
194     <th>
195     #errors
196     <th> in <caption>
197     </caption> implied by <th> is ignored
198     #document-fragment caption
199    
200     #data
201     <th>x
202     #errors
203     <th> in <caption>
204     </caption> implied by <th> is ignored
205     #document-fragment caption
206     | "x"
207    
208     #data
209     <col>
210     #errors
211     <col> in <caption>
212     </caption> implied by <col> is ignored
213     #document-fragment caption
214    
215     #data
216     <col>x
217     #errors
218     <col> in <caption>
219     </caption> implied by <col> is ignored
220     #document-fragment caption
221     | "x"
222    
223     #data
224     <caption><tbody>
225     #errors
226     <caption> in <tbody>
227     <tbody> in <tbody>
228     #document-fragment tbody
229    
230     #data
231     <caption>
232     #errors
233     <caption> in <tr>
234     #document-fragment tr
235    
236     #data
237     <caption>x
238     #errors
239     <caption> in <tr>
240     char in <tr>
241     #document-fragment tr
242     | "x"
243    
244     #data
245     </table>
246     #errors
247     </table> in <tr>.innerHTML
248     #document-fragment tr
249    
250     #data
251     </table><td>
252     #errors
253     </table> in <tr>.innerHTML
254     #document-fragment tr
255     | <td>
256    
257     #data
258     </tbody>
259     #errors
260     </tbody> in <tr>.innerHTML
261     #document-fragment tr
262    
263     #data
264     <table>
265     #errors
266 wakaba 1.12 no </table> before <table> (</table> implied before <table>)
267     </table> but no opening <table> (</table> ignored, which causes <table> ignored)
268 wakaba 1.6 #document-fragment table
269    
270     #data
271     <table><tr>
272     #errors
273 wakaba 1.12 no </table> before <table>
274     </table> but no opening <table>
275 wakaba 1.6 #document-fragment table
276     | <tbody>
277     | <tr>
278    
279     #data
280     </colgroup>
281     #errors
282     </colgroup> in <colgroup>.innerHTML
283     #document-fragment colgroup
284    
285     #data
286     </colgroup><col>
287     #errors
288     </colgroup> in <colgroup>.innerHTML
289     #document-fragment colgroup
290     | <col>
291    
292     #data
293     </select>
294     #errors
295     </select> in <select>.innerHTML
296     #document-fragment select
297    
298     #data
299     </select><option>
300     #errors
301     </select> in <select>.innerHTML
302     #document-fragment select
303     | <option>
304    
305     #data
306     <select>
307     #errors
308     <select> in <select> - treated as if </select>
309     </select> in <select>.innerHTML
310     #document-fragment select
311    
312     #data
313     <select><option>
314     #errors
315     <select> in <select> - treated as if </select>
316     </select> in <select>.innerHTML
317     #document-fragment select
318     | <option>
319    
320     #data
321     </optgroup>
322     #errors
323     unmatched </optgroup>
324     #document-fragment optgroup
325    
326     #data
327     </optgroup><option>
328     #errors
329     unmatched </optgroup>
330     #document-fragment optgroup
331 wakaba 1.14 | <option>
332 wakaba 1.6
333     #data
334     </optgroup>
335     #errors
336     unmatched </optgroup>
337     #document-fragment option
338    
339     #data
340     </optgroup><option>
341     #errors
342     unmatched </optgroup>
343     #document-fragment option
344 wakaba 1.14 | <option>
345 wakaba 1.6
346     #data
347     </optgroup>a
348     #errors
349     unmatched </optgroup>
350     #document-fragment option
351     | "a"
352    
353     #data
354     </optgroup>
355     #errors
356     unmatched </optgroup>
357     #document-fragment select
358    
359     #data
360     </option>
361     #errors
362     unmatched </option>
363     #document-fragment select
364    
365     #data
366     </option>
367     #errors
368     unmatched </option>
369     #document-fragment option
370    
371     #data
372     </table>
373     #errors
374     </table> in <select>
375     #document-fragment select
376    
377     #data
378     </tbody>
379     #errors
380     </tbody> in <select>
381     #document-fragment select
382    
383     #data
384     </thead>
385     #errors
386     </thead> in <select>
387     #document-fragment select
388    
389     #data
390     </tfoot>
391     #errors
392     </tfoot> in <select>
393     #document-fragment select
394    
395     #data
396     </tr>
397     #errors
398     </tr> in <select>
399     #document-fragment select
400    
401     #data
402     <option>
403     #errors
404     #document-fragment select
405     | <option>
406    
407     #data
408     <optgroup>
409     #errors
410     #document-fragment select
411     | <optgroup>
412    
413     #data
414     </tr><option>a
415     #errors
416     </tr> in <select>
417     #document-fragment select
418     | <option>
419     | "a"
420    
421     #data
422     </caption>
423     #errors
424     </caption> in <select>
425     #document-fragment select
426    
427     #data
428     </td>
429     #errors
430     </td> in <select>
431     #document-fragment select
432    
433     #data
434     </th>
435     #errors
436     </th> in <select>
437     #document-fragment select
438    
439     #data
440     </th>aaa
441     #errors
442     unmatched </th>
443     #document-fragment option
444     | "aaa"
445    
446     #data
447 wakaba 1.3 </frameset>
448     #errors
449     unmatched </frameset>
450     #document-fragment frameset
451    
452     #data
453     </frameset></frameset>
454     #errors
455     unmatched </frameset>
456     unmatched </frameset>
457     #document-fragment frameset
458    
459     #data
460     </frameset></frameset></frameset>
461     #errors
462     unmatched </frameset>
463     unmatched </frameset>
464     unmatched </frameset>
465     #document-fragment frameset
466    
467     #data
468     </frameset></html>
469     #errors
470     unmatched </frameset>
471     unmatched </html>
472     #document-fragment frameset
473    
474     #data
475     </frameset></frameset></html>
476     #errors
477     unmatched </frameset>
478     unmatched </frameset>
479     unmatched </html>
480     #document-fragment frameset
481    
482     #data
483     </frameset><frame>
484     #errors
485     unmatched </frameset>
486     #document-fragment frameset
487     | <frame>
488    
489     #data
490     </frameset><!---->
491     #errors
492     unmatched </frameset>
493     #document-fragment frameset
494     | <!-- -->
495    
496     #data
497     </frameset></html><!---->
498     #errors
499     unmatched </frameset>
500     unmatched </html>
501     #document-fragment frameset
502     | <!-- -->
503 wakaba 1.4
504     #data
505     a
506     #errors
507     character in table body
508     #document-fragment tbody
509     | "a"
510    
511     #data
512     a
513     #errors
514     character in table body
515     #document-fragment thead
516     | "a"
517    
518     #data
519     a
520     #errors
521     character in table body
522     #document-fragment tfoot
523     | "a"
524 wakaba 1.5
525     #data
526     a
527     #errors
528     #document-fragment html
529     | <head>
530     | <body>
531     | "a"
532    
533     #data
534     <p>
535     #errors
536     #document-fragment html
537     | <head>
538     | <body>
539     | <p>
540    
541     #data
542     <title>aa
543     #errors
544     EOF in <title>
545     #document-fragment html
546     | <head>
547     | <title>
548     | "aa"
549 wakaba 1.12 | <body>
550 wakaba 1.5
551     #data
552     <title>aa</title>
553     #errors
554     #document-fragment html
555     | <head>
556     | <title>
557     | "aa"
558 wakaba 1.12 | <body>
559 wakaba 1.5
560     #data
561     <style></style>
562     #errors
563     #document-fragment html
564     | <head>
565     | <style>
566 wakaba 1.12 | <body>
567 wakaba 1.6
568     #data
569     #errors
570     #document-fragment html
571 wakaba 1.12 | <head>
572     | <body>
573 wakaba 1.6
574     #data
575     <head>
576     #errors
577     #document-fragment html
578     | <head>
579 wakaba 1.12 | <body>
580 wakaba 1.6
581     #data
582     <link>
583     #errors
584     #document-fragment html
585     | <head>
586     | <link>
587 wakaba 1.12 | <body>
588 wakaba 1.6
589     #data
590     </html>
591     #errors
592     unmarched </html>
593     #document-fragment html
594     | <head>
595     | <body>
596    
597     #data
598     </html>a
599     #errors
600     unmatched </html>
601     char after </body> implied by </html>
602     #document-fragment html
603     | <head>
604     | <body>
605     | "a"
606    
607     #data
608     <span></html>
609     #errors
610 wakaba 1.15 unmatched </body> (generated by the algorithm to process </html>)
611     unclosed </span> at the end-of-file
612 wakaba 1.6 #document-fragment html
613     | <head>
614     | <body>
615     | <span>
616    
617     #data
618     <span></html>a
619     #errors
620 wakaba 1.15 unmatched </body> (generated by the algorithm to process </html>)
621     unclosed </span> at the end-of-file
622 wakaba 1.6 #document-fragment html
623     | <head>
624     | <body>
625     | <span>
626     | "a"
627    
628     #data
629     </html>
630     #errors
631 wakaba 1.15 unmarched </body> (generated by the algorithm to process </html>)
632 wakaba 1.6 #document-fragment p
633    
634     #data
635     </html>a
636     #errors
637 wakaba 1.15 unmarched </body> (generated by the algorithm to process </html>)
638 wakaba 1.6 #document-fragment p
639     | "a"
640    
641     #data
642     <span></html>
643     #errors
644 wakaba 1.15 unmarched </body> (generated by the algorithm to process </html>)
645     unclosed </span> at the end-of-file
646 wakaba 1.6 #document-fragment p
647     | <span>
648    
649     #data
650     <span></html>a
651     #errors
652     unmatched </html>
653     <span> not closed
654     #document-fragment p
655     | <span>
656     | "a"
657    
658     #data escaped
659     aa\u0000b
660     #errors
661     NULL
662     #document-fragment p escaped
663     | "aa\ufffdb"
664    
665     #data escaped
666     a\U12345678b
667     #errors
668     #document-fragment p escaped
669     | "a\ufffdb"
670    
671     #data
672     <input>
673     #errors
674     #document-fragment form
675     | <input>
676 wakaba 1.7
677     #data
678     <html>
679     #errors
680     <html> in <body>
681     #document-fragment body
682    
683     #data
684     <html>
685     #errors
686     <html> in <html>
687     #document-fragment html
688 wakaba 1.12 | <head>
689     | <body>
690 wakaba 1.9
691     #data
692 wakaba 1.10
693     #errors
694     #document-fragment html
695 wakaba 1.12 | <head>
696     | <body>
697 wakaba 1.10
698     #data
699     <head><body>
700     #errors
701     #document-fragment html
702     | <head>
703     | <body>
704    
705     #data
706     a
707     #errors
708     #document-fragment html
709     | <head>
710     | <body>
711     | "a"
712    
713     #data
714     a b
715     #errors
716     #document-fragment html
717     | <head>
718     | <body>
719     | "a b"
720    
721     #data
722     <!----> <body>
723     #errors
724     #document-fragment html
725     | <!-- -->
726     | <head>
727     | <body>
728    
729     #data
730 wakaba 1.9 #errors
731     #document-fragment pre
732    
733     #data
734     #errors
735     #document-fragment listing
736    
737     #data
738     #errors
739     #document-fragment textarea
740    
741     #data escaped
742     \u000A
743     #errors
744     #document-fragment pre
745     | "
746     "
747    
748     #data escaped
749     \u000A
750     #errors
751     #document-fragment listing
752     | "
753     "
754    
755     #data escaped
756     \u000A
757     #errors
758     #document-fragment textarea
759     | "
760     "
761    
762     #data escaped
763     \u000Aa
764     #errors
765     #document-fragment pre
766     | "
767     a"
768    
769     #data escaped
770     \u000Aa
771     #errors
772     #document-fragment listing
773     | "
774     a"
775    
776     #data escaped
777     \u000Aa
778     #errors
779     #document-fragment textarea
780     | "
781     a"
782 wakaba 1.11
783     #data
784     <span>
785     #errors
786     unexpected end-of-file
787     #document-fragment p
788     | <span>
789    
790     #data
791     <li>
792     #errors
793     #document-fragment p
794     | <li>
795    
796     #data
797     <dt>
798     #errors
799     #document-fragment p
800     | <dt>
801    
802     #data
803     <dd>
804     #errors
805     #document-fragment p
806     | <dd>
807    
808     #data
809     <p>
810     #errors
811     #document-fragment p
812     | <p>
813    
814     #data
815     <thead>
816     #errors
817     #document-fragment table
818     | <thead>
819    
820     #data
821     <tbody>
822     #errors
823     #document-fragment table
824     | <tbody>
825    
826     #data
827     <tfoot>
828     #errors
829     #document-fragment table
830     | <tfoot>
831    
832     #data
833     <tr>
834     #errors
835     #document-fragment table
836     | <tbody>
837     | <tr>
838    
839     #data
840     <tr>
841     #errors
842     #document-fragment tbody
843     | <tr>
844    
845     #data
846     <td>
847     #errors
848     #document-fragment tr
849     | <td>
850    
851     #data
852     <td><a>
853     #errors
854     unexpected end-of-file
855     #document-fragment tr
856     | <td>
857     | <a>
858    
859     #data
860     <col>
861     #errors
862     #document-fragment colgroup
863     | <col>
864    
865     #data
866     <colgroup>
867     #errors
868     #document-fragment table
869     | <colgroup>
870    
871     #data
872     <col>
873     #errors
874     #document-fragment table
875     | <colgroup>
876     | <col>
877    
878     #data
879     <frameset>
880     #errors
881     unexpected end-of-file
882     #document-fragment frameset
883     | <frameset>
884    
885     #data
886     <frame>
887     #errors
888     #document-fragment frameset
889     | <frame>
890    
891     #data
892     <noframes>
893     #errors
894     no </noframes>
895     #document-fragment frameset
896     | <noframes>
897    
898     ## NOTE: Scripting is disabled.
899     #data
900     <span>
901     #errors
902     #document-fragment noscript
903     | "<span>"
904    
905     ## NOTE: Scripting is disabled.
906     #data
907     <span>
908     #errors
909     #document-fragment noframes
910     | "<span>"

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24