/[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.1 - (hide annotations) (download)
Sat Jun 23 02:09:06 2007 UTC (18 years ago) by wakaba
Branch: MAIN
Tests from html5lib are now part of Whatpm CVS repository

1 wakaba 1.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     Unexpected EOF. Missing closing tag.
203     #document
204     | <!DOCTYPE HTML>
205     | <html>
206     | <head>
207     | <body>
208     | <b>
209     | &="&"
210     | "X"
211    
212     #data
213     <!doctypehtml><scrIPt type=text/x-foobar;baz>X</SCRipt
214     #errors
215     No space after literal DOCTYPE.
216     Unexpected EOF in (end) tag name
217     #document
218     | <!DOCTYPE HTML>
219     | <html>
220     | <head>
221     | <script>
222     | type="text/x-foobar;baz"
223     | "X"
224     | <body>
225    
226     #data
227     &
228     #errors
229     No doctype.
230     Unfinished entity.
231     #document
232     | <html>
233     | <head>
234     | <body>
235     | "&"
236    
237     #data
238     &#
239     #errors
240     No doctype.
241     Unfinished numeric entity.
242     #document
243     | <html>
244     | <head>
245     | <body>
246     | "&#"
247    
248     #data
249     &#X
250     #errors
251     No doctype.
252     Unfinished hexadecimal entity.
253     #document
254     | <html>
255     | <head>
256     | <body>
257     | "&#X"
258    
259     #data
260     &#x
261     #errors
262     No doctype.
263     Unfinished hexadecimal entity.
264     #document
265     | <html>
266     | <head>
267     | <body>
268     | "&#x"
269    
270     #data
271     &#45
272     #errors
273     No doctype.
274     Numeric entity didn't end with ;
275     #document
276     | <html>
277     | <head>
278     | <body>
279     | "-"
280    
281     #data
282     &x-test
283     #errors
284     No doctype.
285     Unfinished named entity.
286     #document
287     | <html>
288     | <head>
289     | <body>
290     | "&x-test"
291    
292     #data
293     <!doctypehtml><p><li>
294     #errors
295     No space after literal DOCTYPE.
296     #document
297     | <!DOCTYPE HTML>
298     | <html>
299     | <head>
300     | <body>
301     | <p>
302     | <li>
303    
304     #data
305     <!doctypehtml><p><dt>
306     #errors
307     No space after literal DOCTYPE.
308     #document
309     | <!DOCTYPE HTML>
310     | <html>
311     | <head>
312     | <body>
313     | <p>
314     | <dt>
315    
316     #data
317     <!doctypehtml><p><dd>
318     #errors
319     No space after literal DOCTYPE.
320     #document
321     | <!DOCTYPE HTML>
322     | <html>
323     | <head>
324     | <body>
325     | <p>
326     | <dd>
327    
328     #data
329     <!doctypehtml><p><form>
330     #errors
331     No space after literal DOCTYPE.
332     Unexpected EOF.
333     #document
334     | <!DOCTYPE HTML>
335     | <html>
336     | <head>
337     | <body>
338     | <p>
339     | <form>
340    
341     #data
342     <!doctype html><p><b><i><u></p> <p>X
343     #errors
344     Unexpected end tag </p>.
345     Unexpected end EOF. Missing closing tags.
346     #document
347     | <!DOCTYPE HTML>
348     | <html>
349     | <head>
350     | <body>
351     | <p>
352     | <b>
353     | <i>
354     | <u>
355     | " "
356     | <p>
357     | <b>
358     | <i>
359     | <u>
360     | "X"
361    
362     #data
363     <!doctype html><p></P>X
364     #errors
365     #document
366     | <!DOCTYPE HTML>
367     | <html>
368     | <head>
369     | <body>
370     | <p>
371     | "X"
372    
373     #data
374     &AMP
375     #errors
376     No doctype.
377     No closing ; for the entity.
378     #document
379     | <html>
380     | <head>
381     | <body>
382     | "&"
383    
384     #data
385     &AMp;
386     #errors
387     No doctype.
388     Invalid entity.
389     #document
390     | <html>
391     | <head>
392     | <body>
393     | "&AMp;"
394    
395     #data
396     <!doctype html><html><head></head><body><thisISasillyTESTelementNameToMakeSureCrazyTagNamesArePARSEDcorrectLY>
397     #errors
398     Unexpected end of file.
399     #document
400     | <!DOCTYPE HTML>
401     | <html>
402     | <head>
403     | <body>
404     | <thisisasillytestelementnametomakesurecrazytagnamesareparsedcorrectly>
405    
406     #data
407     <!doctype html>X</body>X
408     #errors
409     Unexpected non-space characters in the after body phase.
410     #document
411     | <!DOCTYPE HTML>
412     | <html>
413     | <head>
414     | <body>
415     | "XX"
416    
417     #data
418     <!doctype html><!-- X
419     #errors
420     Unexpected end of file in comment.
421     #document
422     | <!DOCTYPE HTML>
423     | <!-- X -->
424     | <html>
425     | <head>
426     | <body>
427    
428     #data
429     <!doctype html><table><caption>test TEST</caption><td>test
430     #errors
431     Unexpected <td> in table body phase.
432     Unexpected end of file.
433     #document
434     | <!DOCTYPE HTML>
435     | <html>
436     | <head>
437     | <body>
438     | <table>
439     | <caption>
440     | "test TEST"
441     | <tbody>
442     | <tr>
443     | <td>
444     | "test"
445    
446     #data
447     <!doctype html><select><option><optgroup>
448     #errors
449     Unexpected end of file. Missing closing tags.
450     #document
451     | <!DOCTYPE HTML>
452     | <html>
453     | <head>
454     | <body>
455     | <select>
456     | <option>
457     | <optgroup>
458    
459     #data
460     <!doctype html><select><optgroup><option></optgroup><option><select><option>
461     #errors
462     Unexpected start tag <select> in <select>.
463     Unexpected start tag <option>.
464     #document
465     | <!DOCTYPE HTML>
466     | <html>
467     | <head>
468     | <body>
469     | <select>
470     | <optgroup>
471     | <option>
472     | <option>
473    
474     #data
475     <!doctype html><select><optgroup><option><optgroup>
476     #errors
477     Unexpected end of file. Missing closing tags.
478     #document
479     | <!DOCTYPE HTML>
480     | <html>
481     | <head>
482     | <body>
483     | <select>
484     | <optgroup>
485     | <option>
486     | <optgroup>
487    
488     #data
489     <!doctype html><font><input><input></font>
490     #errors
491     #document
492     | <!DOCTYPE HTML>
493     | <html>
494     | <head>
495     | <body>
496     | <font>
497     | <input>
498     | <input>
499    
500     #data
501     <!DoctypE html><!-- XXX - XXX -->
502     #errors
503     #document
504     | <!DOCTYPE HTML>
505     | <!-- XXX - XXX -->
506     | <html>
507     | <head>
508     | <body>
509    
510     #data
511     <!DoctypE html><!-- XXX - XXX
512     #errors
513     Unexpected EOF in comment.
514     #document
515     | <!DOCTYPE HTML>
516     | <!-- XXX - XXX -->
517     | <html>
518     | <head>
519     | <body>
520    
521     #data
522     <!DoctypE html><!-- XXX - XXX - XXX -->
523     #errors
524     #document
525     | <!DOCTYPE HTML>
526     | <!-- XXX - XXX - XXX -->
527     | <html>
528     | <head>
529     | <body>
530    
531     #data
532     <isindex test=x name=x>
533     #errors
534     No doctype
535     <isindex> is not ok!
536     #document
537     | <html>
538     | <head>
539     | <body>
540     | <form>
541     | <hr>
542     | <p>
543     | <label>
544     | "This is a searchable index. Insert your search keywords here:"
545     | <input>
546     | test="x"
547     | name="isindex"
548     | <hr>
549    
550     #data
551     test
552     test
553     #errors
554     No doctype
555     #document
556     | <html>
557     | <head>
558     | <body>
559     | "test
560     test"
561    
562     #data
563     <p><b><i><u></p>
564     <p>X
565     #errors
566     No doctype
567     Unexpected end tag p.
568     Unexpected EOF.
569     #document
570     | <html>
571     | <head>
572     | <body>
573     | <p>
574     | <b>
575     | <i>
576     | <u>
577     | "
578     "
579     | <p>
580     | <b>
581     | <i>
582     | <u>
583     | "X"
584    
585     #data
586     <!doctype html><body><title>test</body></title>
587     #errors
588     Unexpected start tag that belongs in the head.
589     Expected closing tag after </.
590     #document
591     | <!DOCTYPE HTML>
592     | <html>
593     | <head>
594     | <title>
595     | "test</body>"
596     | <body>
597    
598     #data
599     <!doctype html><body><title>X</title><meta name=z><link rel=foo><style>
600     x { content:"</style" } </style>
601     #errors
602     Unexpected start tag that belongs in head.
603     Unexpected start tag that belongs in head.
604     Unexpected start tag that belongs in head.
605     Expected closing tag after </.
606     #document
607     | <!DOCTYPE HTML>
608     | <html>
609     | <head>
610     | <title>
611     | "X"
612     | <meta>
613     | name="z"
614     | <link>
615     | rel="foo"
616     | <body>
617     | <style>
618     | "
619     x { content:"</style" } "
620    
621     #data
622     <!doctype html><select><optgroup></optgroup></select>
623     #errors
624     #document
625     | <!DOCTYPE HTML>
626     | <html>
627     | <head>
628     | <body>
629     | <select>
630     | <optgroup>
631    
632     #data
633    
634    
635     #errors
636     No doctype.
637     #document
638     | "
639     "
640     | <html>
641     | <head>
642     | <body>
643    
644     #data
645     <!doctype html> <html>
646     #errors
647     #document
648     | <!DOCTYPE HTML>
649     | " "
650     | <html>
651     | <head>
652     | <body>
653    
654     #data
655     <!doctype html><script>
656     </script> <title>x</title> </head>
657     #errors
658     #document
659     | <!DOCTYPE HTML>
660     | <html>
661     | <head>
662     | <script>
663     | "
664     "
665     | " "
666     | <title>
667     | "x"
668     | " "
669     | <body>
670    
671     #data
672     <!doctype html><html><body><html id=x>
673     #errors
674     duplicate html start tag
675     #document
676     | <!DOCTYPE HTML>
677     | <html>
678     | id="x"
679     | <head>
680     | <body>
681    
682     #data
683     <!doctype html>X</body><html id="x">
684     #errors
685     Unexpected html start tag in the after body phase.
686     html needs to be the first start tag.
687     #document
688     | <!DOCTYPE HTML>
689     | <html>
690     | id="x"
691     | <head>
692     | <body>
693     | "X"
694    
695     #data
696     <!doctype html><head><html id=x>
697     #errors
698     html start tag too late
699     #document
700     | <!DOCTYPE HTML>
701     | <html>
702     | id="x"
703     | <head>
704     | <body>
705    
706     #data
707     <!doctype html>X</html>X
708     #errors
709     Unexpected non-space characters. Expected end of file.
710     Unexpected non-space characters in after body phase. Expected end of file.
711     #document
712     | <!DOCTYPE HTML>
713     | <html>
714     | <head>
715     | <body>
716     | "XX"
717    
718     #data
719     <!doctype html>X</html>
720     #errors
721     #document
722     | <!DOCTYPE HTML>
723     | <html>
724     | <head>
725     | <body>
726     | "X "
727    
728     #data
729     <!doctype html>X</html><p>X
730     #errors
731     Unexpected start tag <p> in trailing end phase.
732     Unexpected start tag <p> in after body phase.
733     #document
734     | <!DOCTYPE HTML>
735     | <html>
736     | <head>
737     | <body>
738     | "X"
739     | <p>
740     | "X"
741    
742     #data
743     <!doctype html>X<p/x/y/z>
744     #errors
745     Solidus (/) incorrectly placed.
746     Solidus (/) incorrectly placed.
747     Solidus (/) incorrectly placed.
748     #document
749     | <!DOCTYPE HTML>
750     | <html>
751     | <head>
752     | <body>
753     | "X"
754     | <p>
755     | y=""
756     | x=""
757     | z=""
758    
759     #data
760     <!doctype html><!--x--
761     #errors
762     Unexpected end of file in comment.
763     #document
764     | <!DOCTYPE HTML>
765     | <!-- x -->
766     | <html>
767     | <head>
768     | <body>
769    
770     #data
771     <!doctype html><table><tr><td></p></table>
772     #errors
773     Unexpected </p> end tag.
774     #document
775     | <!DOCTYPE HTML>
776     | <html>
777     | <head>
778     | <body>
779     | <table>
780     | <tbody>
781     | <tr>
782     | <td>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24