/[suikacvs]/markup/html/whatpm/t/tree-construction/tests6.dat
Suika

Contents of /markup/html/whatpm/t/tree-construction/tests6.dat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (hide annotations) (download)
Sun Apr 13 06:44:27 2008 UTC (17 years, 2 months ago) by wakaba
Branch: MAIN
Changes since 1.9: +4 -3 lines
++ whatpm/t/ChangeLog	13 Apr 2008 06:43:36 -0000
	* HTML-tokenizer.t, HTML-tree.t, Makefile: Support for html5lib
	new test files.

2008-04-13  Wakaba  <wakaba@suika.fam.cx>

++ whatpm/Whatpm/ChangeLog	13 Apr 2008 06:44:17 -0000
	* mkentitylist.pl: Support for new HTML5 entity table format (the
	definition for |AElig;| was missing).

2008-04-13  Wakaba  <wakaba@suika.fam.cx>

1 wakaba 1.1 #data
2     <!doctype html></head> <head>
3     #errors
4 wakaba 1.7 Line: 1 Col: 29 Unexpected start tag head. Ignored.
5 wakaba 1.1 #document
6     | <!DOCTYPE html>
7     | <html>
8     | <head>
9     | " "
10     | <body>
11    
12     #data
13     <!doctype html></html> <head>
14     #errors
15 wakaba 1.7 Line: 1 Col: 29 Unexpected start tag (head). Expected end of file.
16     Line: 1 Col: 29 Unexpected start tag token (head) in the after body phase.
17     Line: 1 Col: 29 Unexpected start tag head. Ignored.
18 wakaba 1.1 #document
19     | <!DOCTYPE html>
20     | <html>
21     | <head>
22     | <body>
23     | " "
24    
25     #data
26     <!doctype html></body><meta>
27     #errors
28 wakaba 1.7 Line: 1 Col: 28 Unexpected start tag token (meta) in the after body phase.
29 wakaba 1.1 #document
30     | <!DOCTYPE html>
31     | <html>
32     | <head>
33     | <body>
34     | <meta>
35 wakaba 1.2
36     #data
37 wakaba 1.9 <!doctype html><form><div></form><div>
38 wakaba 1.2 #errors
39 wakaba 1.7 Line: 1 Col: 33 End tag (form) seen too early. Ignored.
40     Line: 1 Col: 38 Expected closing tag. Unexpected end of file.
41 wakaba 1.2 #document
42 wakaba 1.9 | <!DOCTYPE html>
43 wakaba 1.2 | <html>
44     | <head>
45     | <body>
46     | <form>
47     | <div>
48 wakaba 1.10 | <div>
49 wakaba 1.2
50     #data
51 wakaba 1.9 <!doctype html><title>&amp;</title>
52 wakaba 1.2 #errors
53     #document
54 wakaba 1.9 | <!DOCTYPE html>
55 wakaba 1.2 | <html>
56     | <head>
57     | <title>
58     | "&"
59     | <body>
60    
61     #data
62 wakaba 1.9 <!doctype html><title><!--&amp;--></title>
63 wakaba 1.2 #errors
64     #document
65 wakaba 1.9 | <!DOCTYPE html>
66 wakaba 1.2 | <html>
67     | <head>
68     | <title>
69     | "<!--&amp;-->"
70 wakaba 1.3 | <body>
71    
72     #data
73     <!doctype>
74     #errors
75 wakaba 1.7 Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
76     Line: 1 Col: 10 Unexpected > character. Expected DOCTYPE name.
77     Line: 1 Col: 10 Erroneous DOCTYPE.
78 wakaba 1.3 #document
79 wakaba 1.4 | <!DOCTYPE >
80 wakaba 1.3 | <html>
81     | <head>
82     | <body>
83    
84     #data
85     <!---x
86     #errors
87 wakaba 1.7 Line: 1 Col: 6 Unexpected end of file in comment.
88     Line: 1 Col: 6 Unexpected End of file. Expected DOCTYPE.
89 wakaba 1.3 #document
90     | <!-- -x -->
91     | <html>
92     | <head>
93 wakaba 1.2 | <body>
94 wakaba 1.5
95     #data
96     <body>
97     <div>
98     #errors
99 wakaba 1.7 Line: 1 Col: 6 Unexpected start tag (body).
100     Line: 2 Col: 5 Expected closing tag. Unexpected end of file.
101 wakaba 1.5 #document-fragment
102     div
103     #document
104     | "
105     "
106     | <div>
107    
108     #data
109     <frameset></frameset>
110     foo
111     #errors
112 wakaba 1.7 Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
113     Line: 2 Col: 3 Unexpected non-space characters in the after frameset phase. Ignored.
114 wakaba 1.5 #document
115     | <html>
116     | <head>
117     | <frameset>
118     | "
119     "
120    
121     #data
122     <frameset></frameset>
123     <noframes>
124     #errors
125 wakaba 1.7 Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
126     Line: 2 Col: 10 Expected closing tag. Unexpected end of file.
127 wakaba 1.5 #document
128     | <html>
129     | <head>
130     | <frameset>
131     | "
132     "
133     | <noframes>
134    
135     #data
136     <frameset></frameset>
137     <div>
138     #errors
139 wakaba 1.7 Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
140     Line: 2 Col: 5 Unexpected start tag (div) in the after frameset phase. Ignored.
141 wakaba 1.5 #document
142     | <html>
143     | <head>
144     | <frameset>
145     | "
146     "
147    
148     #data
149     <frameset></frameset>
150     </html>
151     #errors
152 wakaba 1.7 Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
153 wakaba 1.5 #document
154     | <html>
155     | <head>
156     | <frameset>
157     | "
158     "
159    
160     #data
161     <frameset></frameset>
162     </div>
163     #errors
164 wakaba 1.7 Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
165     Line: 2 Col: 6 Unexpected end tag (div) in the after frameset phase. Ignored.
166 wakaba 1.5 #document
167     | <html>
168     | <head>
169     | <frameset>
170     | "
171 wakaba 1.6 "
172    
173     #data
174     <form><form>
175     #errors
176 wakaba 1.7 Line: 1 Col: 6 Unexpected start tag (form). Expected DOCTYPE.
177     Line: 1 Col: 12 Unexpected start tag (form).
178     Line: 1 Col: 12 Expected closing tag. Unexpected end of file.
179 wakaba 1.6 #document
180     | <html>
181     | <head>
182     | <body>
183     | <form>
184    
185     #data
186     <button><button>
187     #errors
188 wakaba 1.7 Line: 1 Col: 8 Unexpected start tag (button). Expected DOCTYPE.
189     Line: 1 Col: 16 Unexpected start tag (button) implies end tag (button).
190     Line: 1 Col: 16 Expected closing tag. Unexpected end of file.
191 wakaba 1.6 #document
192     | <html>
193     | <head>
194     | <body>
195     | <button>
196     | <button>
197    
198     #data
199     <table><tr><td></th>
200     #errors
201 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
202     Line: 1 Col: 20 Unexpected end tag (th). Ignored.
203     Line: 1 Col: 20 Expected closing tag. Unexpected end of file.
204 wakaba 1.6 #document
205     | <html>
206     | <head>
207     | <body>
208     | <table>
209     | <tbody>
210     | <tr>
211     | <td>
212    
213     #data
214     <table><caption><td>
215     #errors
216 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
217     Line: 1 Col: 20 Unexpected end tag (td). Ignored.
218     Line: 1 Col: 20 Unexpected table cell start tag (td) in the table body phase.
219     Line: 1 Col: 20 Expected closing tag. Unexpected end of file.
220 wakaba 1.6 #document
221     | <html>
222     | <head>
223     | <body>
224     | <table>
225     | <caption>
226     | <tbody>
227     | <tr>
228     | <td>
229    
230     #data
231     <table><caption><div>
232     #errors
233 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
234     Line: 1 Col: 21 Expected closing tag. Unexpected end of file.
235 wakaba 1.6 #document
236     | <html>
237     | <head>
238     | <body>
239     | <table>
240     | <caption>
241     | <div>
242    
243     #data
244     </caption><div>
245     #errors
246 wakaba 1.7 Line: 1 Col: 10 Unexpected end tag (caption). Ignored.
247     Line: 1 Col: 15 Expected closing tag. Unexpected end of file.
248 wakaba 1.8 #document-fragment
249     caption
250 wakaba 1.6 #document
251     | <div>
252    
253     #data
254     <table><caption><div></caption>
255     #errors
256 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
257     Line: 1 Col: 31 Unexpected end tag (caption). Missing end tag (div).
258     Line: 1 Col: 31 Expected closing tag. Unexpected end of file.
259 wakaba 1.6 #document
260     | <html>
261     | <head>
262     | <body>
263     | <table>
264     | <caption>
265     | <div>
266    
267     #data
268     <table><caption></table>
269     #errors
270 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
271     Line: 1 Col: 24 Unexpected end table tag in caption. Generates implied end caption.
272 wakaba 1.6 #document
273     | <html>
274     | <head>
275     | <body>
276     | <table>
277     | <caption>
278    
279     #data
280     </table><div>
281     #errors
282 wakaba 1.7 Line: 1 Col: 8 Unexpected end table tag in caption. Generates implied end caption.
283     Line: 1 Col: 8 Unexpected end tag (caption). Ignored.
284     Line: 1 Col: 13 Expected closing tag. Unexpected end of file.
285 wakaba 1.8 #document-fragment
286     caption
287 wakaba 1.6 #document
288     | <div>
289    
290     #data
291     <table><caption></body></col></colgroup></html></tbody></td></tfoot></th></thead></tr>
292     #errors
293 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
294     Line: 1 Col: 23 Unexpected end tag (body). Ignored.
295     Line: 1 Col: 29 Unexpected end tag (col). Ignored.
296     Line: 1 Col: 40 Unexpected end tag (colgroup). Ignored.
297     Line: 1 Col: 47 Unexpected end tag (html). Ignored.
298     Line: 1 Col: 55 Unexpected end tag (tbody). Ignored.
299     Line: 1 Col: 60 Unexpected end tag (td). Ignored.
300     Line: 1 Col: 68 Unexpected end tag (tfoot). Ignored.
301     Line: 1 Col: 73 Unexpected end tag (th). Ignored.
302     Line: 1 Col: 81 Unexpected end tag (thead). Ignored.
303     Line: 1 Col: 86 Unexpected end tag (tr). Ignored.
304     Line: 1 Col: 86 Expected closing tag. Unexpected end of file.
305 wakaba 1.6 #document
306     | <html>
307     | <head>
308     | <body>
309     | <table>
310     | <caption>
311    
312     #data
313     <table><caption><div></div>
314     #errors
315 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
316     Line: 1 Col: 27 Expected closing tag. Unexpected end of file.
317 wakaba 1.6 #document
318     | <html>
319     | <head>
320     | <body>
321     | <table>
322     | <caption>
323     | <div>
324    
325     #data
326     <table><tr><td></body></caption></col></colgroup></html>
327     #errors
328 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
329     Line: 1 Col: 22 Unexpected end tag (body). Ignored.
330     Line: 1 Col: 32 Unexpected end tag (caption). Ignored.
331     Line: 1 Col: 38 Unexpected end tag (col). Ignored.
332     Line: 1 Col: 49 Unexpected end tag (colgroup). Ignored.
333     Line: 1 Col: 56 Unexpected end tag (html). Ignored.
334     Line: 1 Col: 56 Expected closing tag. Unexpected end of file.
335 wakaba 1.6 #document
336     | <html>
337     | <head>
338     | <body>
339     | <table>
340     | <tbody>
341     | <tr>
342     | <td>
343    
344     #data
345     </table></tbody></tfoot></thead></tr><div>
346     #errors
347 wakaba 1.7 Line: 1 Col: 8 Unexpected end tag (table). Ignored.
348     Line: 1 Col: 16 Unexpected end tag (tbody). Ignored.
349     Line: 1 Col: 24 Unexpected end tag (tfoot). Ignored.
350     Line: 1 Col: 32 Unexpected end tag (thead). Ignored.
351     Line: 1 Col: 37 Unexpected end tag (tr). Ignored.
352     Line: 1 Col: 42 Expected closing tag. Unexpected end of file.
353 wakaba 1.8 #document-fragment
354     td
355 wakaba 1.6 #document
356     | <div>
357    
358     #data
359     <table><colgroup>foo
360     #errors
361 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
362     Line: 1 Col: 20 Unexpected non-space characters in table context caused voodoo mode.
363     Line: 1 Col: 20 Expected closing tag. Unexpected end of file.
364 wakaba 1.6 #document
365     | <html>
366     | <head>
367     | <body>
368     | "foo"
369     | <table>
370     | <colgroup>
371    
372     #data
373     foo<col>
374 wakaba 1.8 #errors
375     Line: 1 Col: 3 Unexpected end tag (colgroup). Ignored.
376 wakaba 1.6 #document-fragment
377     colgroup
378     #document
379     | <col>
380    
381     #data
382     <table><colgroup></col>
383     #errors
384 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
385     Line: 1 Col: 23 This element (col) has no end tag.
386     Line: 1 Col: 23 Expected closing tag. Unexpected end of file.
387 wakaba 1.6 #document
388     | <html>
389     | <head>
390     | <body>
391     | <table>
392     | <colgroup>
393    
394     #data
395     <frameset><div>
396     #errors
397 wakaba 1.7 Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
398     Line: 1 Col: 15 Unexpected start tag token (div) in the frameset phase. Ignored.
399     Line: 1 Col: 15 Expected closing tag. Unexpected end of file.
400 wakaba 1.6 #document
401     | <html>
402     | <head>
403     | <frameset>
404    
405     #data
406     </frameset><frame>
407 wakaba 1.8 #errors
408     Line: 1 Col: 11 Unexpected end tag token (frameset) in the frameset phase (innerHTML).
409 wakaba 1.6 #document-fragment
410     frameset
411     #document
412     | <frame>
413    
414     #data
415     <frameset></div>
416     #errors
417 wakaba 1.7 Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
418     Line: 1 Col: 16 Unexpected end tag token (div) in the frameset phase. Ignored.
419     Line: 1 Col: 16 Expected closing tag. Unexpected end of file.
420 wakaba 1.6 #document
421     | <html>
422     | <head>
423     | <frameset>
424    
425     #data
426     </body><div>
427     #errors
428 wakaba 1.7 Line: 1 Col: 7 Unexpected end tag (body). Ignored.
429     Line: 1 Col: 12 Expected closing tag. Unexpected end of file.
430 wakaba 1.8 #document-fragment
431     body
432 wakaba 1.6 #document
433     | <div>
434    
435     #data
436     <table><tr><div>
437     #errors
438 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
439     Line: 1 Col: 16 Unexpected start tag (div) in table context caused voodoo mode.
440     Line: 1 Col: 16 Expected closing tag. Unexpected end of file.
441 wakaba 1.6 #document
442     | <html>
443     | <head>
444     | <body>
445     | <div>
446     | <table>
447     | <tbody>
448     | <tr>
449    
450     #data
451     </tr><td>
452 wakaba 1.8 #errors
453     Line: 1 Col: 5 Unexpected end tag (tr). Ignored.
454 wakaba 1.6 #document-fragment
455     tr
456     #document
457     | <td>
458    
459     #data
460     </tbody></tfoot></thead><td>
461     #errors
462 wakaba 1.7 Line: 1 Col: 8 Unexpected end tag (tbody). Ignored.
463     Line: 1 Col: 16 Unexpected end tag (tfoot). Ignored.
464     Line: 1 Col: 24 Unexpected end tag (thead). Ignored.
465 wakaba 1.8 #document-fragment
466     tr
467 wakaba 1.6 #document
468     | <td>
469    
470     #data
471     <table><tr><div><td>
472     #errors
473 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
474     Line: 1 Col: 16 Unexpected start tag (div) in table context caused voodoo mode.
475     Line: 1 Col: 20 Unexpected implied end tag (div) in the table row phase.
476     Line: 1 Col: 20 Expected closing tag. Unexpected end of file.
477 wakaba 1.6 #document
478     | <html>
479     | <head>
480     | <body>
481     | <div>
482     | <table>
483     | <tbody>
484     | <tr>
485     | <td>
486    
487     #data
488     <caption><col><colgroup><tbody><tfoot><thead><tr>
489     #errors
490 wakaba 1.7 Line: 1 Col: 9 Unexpected start tag (caption).
491     Line: 1 Col: 14 Unexpected start tag (col).
492     Line: 1 Col: 24 Unexpected start tag (colgroup).
493     Line: 1 Col: 31 Unexpected start tag (tbody).
494     Line: 1 Col: 38 Unexpected start tag (tfoot).
495     Line: 1 Col: 45 Unexpected start tag (thead).
496 wakaba 1.10 Line: 1 Col: 49 Unexpected end of file. Expected table content.
497 wakaba 1.8 #document-fragment
498     tbody
499 wakaba 1.6 #document
500     | <tr>
501    
502     #data
503     <table><tbody></thead>
504     #errors
505 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
506     Line: 1 Col: 22 Unexpected end tag (thead) in the table body phase. Ignored.
507     Line: 1 Col: 22 Expected closing tag. Unexpected end of file.
508 wakaba 1.6 #document
509     | <html>
510     | <head>
511     | <body>
512     | <table>
513     | <tbody>
514    
515     #data
516     </table><tr>
517 wakaba 1.8 #errors
518     Line: 1 Col: 8 Unexpected end tag (table). Ignored.
519 wakaba 1.10 Line: 1 Col: 12 Unexpected end of file. Expected table content.
520 wakaba 1.6 #document-fragment
521     tbody
522     #document
523     | <tr>
524    
525     #data
526     <table><tbody></body></caption></col></colgroup></html></td></th></tr>
527     #errors
528 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
529     Line: 1 Col: 21 Unexpected end tag (body) in the table body phase. Ignored.
530     Line: 1 Col: 31 Unexpected end tag (caption) in the table body phase. Ignored.
531     Line: 1 Col: 37 Unexpected end tag (col) in the table body phase. Ignored.
532     Line: 1 Col: 48 Unexpected end tag (colgroup) in the table body phase. Ignored.
533     Line: 1 Col: 55 Unexpected end tag (html) in the table body phase. Ignored.
534     Line: 1 Col: 60 Unexpected end tag (td) in the table body phase. Ignored.
535     Line: 1 Col: 65 Unexpected end tag (th) in the table body phase. Ignored.
536     Line: 1 Col: 70 Unexpected end tag (tr) in the table body phase. Ignored.
537     Line: 1 Col: 70 Expected closing tag. Unexpected end of file.
538 wakaba 1.6 #document
539     | <html>
540     | <head>
541     | <body>
542     | <table>
543     | <tbody>
544    
545     #data
546     <table><tbody></div>
547     #errors
548 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
549     Line: 1 Col: 20 Unexpected end tag (div) in table context caused voodoo mode.
550     Line: 1 Col: 20 End tag (div) seen too early. Expected other end tag.
551     Line: 1 Col: 20 Expected closing tag. Unexpected end of file.
552 wakaba 1.6 #document
553     | <html>
554     | <head>
555     | <body>
556     | <table>
557     | <tbody>
558    
559     #data
560     <table><table>
561     #errors
562 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
563     Line: 1 Col: 14 Unexpected start tag (table) implies end tag (table).
564     Line: 1 Col: 14 Expected closing tag. Unexpected end of file.
565 wakaba 1.6 #document
566     | <html>
567     | <head>
568     | <body>
569     | <table>
570     | <table>
571    
572     #data
573     <table></body></caption></col></colgroup></html></tbody></td></tfoot></th></thead></tr>
574     #errors
575 wakaba 1.7 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
576     Line: 1 Col: 14 Unexpected end tag (body). Ignored.
577     Line: 1 Col: 24 Unexpected end tag (caption). Ignored.
578     Line: 1 Col: 30 Unexpected end tag (col). Ignored.
579     Line: 1 Col: 41 Unexpected end tag (colgroup). Ignored.
580     Line: 1 Col: 48 Unexpected end tag (html). Ignored.
581     Line: 1 Col: 56 Unexpected end tag (tbody). Ignored.
582     Line: 1 Col: 61 Unexpected end tag (td). Ignored.
583     Line: 1 Col: 69 Unexpected end tag (tfoot). Ignored.
584     Line: 1 Col: 74 Unexpected end tag (th). Ignored.
585     Line: 1 Col: 82 Unexpected end tag (thead). Ignored.
586     Line: 1 Col: 87 Unexpected end tag (tr). Ignored.
587     Line: 1 Col: 87 Expected closing tag. Unexpected end of file.
588 wakaba 1.6 #document
589     | <html>
590     | <head>
591     | <body>
592     | <table>
593    
594     #data
595     </table><tr>
596     #errors
597 wakaba 1.7 Line: 1 Col: 8 Unexpected end tag (table). Ignored.
598     Line: 1 Col: 12 Expected closing tag. Unexpected end of file.
599 wakaba 1.8 #document-fragment
600     table
601 wakaba 1.6 #document
602     | <tbody>
603     | <tr>
604 wakaba 1.7
605     #data
606     <html></html><!-- foo -->
607     #errors
608     Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
609     #document
610     | <html>
611     | <head>
612     | <body>
613     | <!-- foo -->
614    
615     #data
616     <body></body></html>
617     #errors
618     Line: 1 Col: 20 Unexpected html end tag in inner html mode.
619 wakaba 1.8 #document-fragment
620     html
621 wakaba 1.7 #document
622     | <head>
623     | <body>
624    
625     #data
626     <html><frameset></frameset></html>
627     #errors
628     Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
629     #document
630     | <html>
631     | <head>
632     | <frameset>
633     | " "
634 wakaba 1.9
635     #data
636     <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"><html></html>
637     #errors
638     doctype-error
639     #document
640 wakaba 1.10 | <!DOCTYPE html "-//W3C//DTD HTML 4.01//EN" "">
641 wakaba 1.9 | <html>
642     | <head>
643     | <body>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24