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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (hide annotations) (download)
Mon Jun 25 11:05:57 2007 UTC (17 years, 4 months ago) by wakaba
Branch: MAIN
Changes since 1.17: +0 -83 lines
++ whatpm/t/ChangeLog	25 Jun 2007 11:03:58 -0000
	* tree-test-1.dat: The tests using |#document-fragment|
	are move to |tree-test-2.dat|.

	* tree-test-2.dat: New test data.  In addition to
	tests from |tree-test-1.dat|, two tests
	for |</table>| are added.

	* HTML-tree.t: |tree-test-2.dat| is added.

2007-06-25  Wakaba  <wakaba@suika.fam.cx>

++ whatpm/Whatpm/ChangeLog	25 Jun 2007 11:05:50 -0000
	* HTML.pm.src (_reset_insertion_mode): Interpretation
	of Step 3 has been changed.

2007-06-25  Wakaba  <wakaba@suika.fam.cx>

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24