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