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