Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / libgo / go / html / testdata / webkit / tests2.dat
blobd33996e0ccb66a03a68f9f8e0bb784afa37a5a5e
1 #data
2 <!DOCTYPE html>Test
3 #errors
4 #document
5 | <!DOCTYPE html>
6 | <html>
7 | <head>
8 | <body>
9 | "Test"
11 #data
12 <textarea>test</div>test
13 #errors
14 Line: 1 Col: 10 Unexpected start tag (textarea). Expected DOCTYPE.
15 Line: 1 Col: 24 Expected closing tag. Unexpected end of file.
16 #document
17 | <html>
18 | <head>
19 | <body>
20 | <textarea>
21 | "test</div>test"
23 #data
24 <table><td>
25 #errors
26 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
27 Line: 1 Col: 11 Unexpected table cell start tag (td) in the table body phase.
28 Line: 1 Col: 11 Expected closing tag. Unexpected end of file.
29 #document
30 | <html>
31 | <head>
32 | <body>
33 | <table>
34 | <tbody>
35 | <tr>
36 | <td>
38 #data
39 <table><td>test</tbody></table>
40 #errors
41 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
42 Line: 1 Col: 11 Unexpected table cell start tag (td) in the table body phase.
43 #document
44 | <html>
45 | <head>
46 | <body>
47 | <table>
48 | <tbody>
49 | <tr>
50 | <td>
51 | "test"
53 #data
54 <frame>test
55 #errors
56 Line: 1 Col: 7 Unexpected start tag (frame). Expected DOCTYPE.
57 Line: 1 Col: 7 Unexpected start tag frame. Ignored.
58 #document
59 | <html>
60 | <head>
61 | <body>
62 | "test"
64 #data
65 <!DOCTYPE html><frameset>test
66 #errors
67 Line: 1 Col: 29 Unepxected characters in the frameset phase. Characters ignored.
68 Line: 1 Col: 29 Expected closing tag. Unexpected end of file.
69 #document
70 | <!DOCTYPE html>
71 | <html>
72 | <head>
73 | <frameset>
75 #data
76 <!DOCTYPE html><frameset><!DOCTYPE html>
77 #errors
78 Line: 1 Col: 40 Unexpected DOCTYPE. Ignored.
79 Line: 1 Col: 40 Expected closing tag. Unexpected end of file.
80 #document
81 | <!DOCTYPE html>
82 | <html>
83 | <head>
84 | <frameset>
86 #data
87 <!DOCTYPE html><font><p><b>test</font>
88 #errors
89 Line: 1 Col: 38 End tag (font) violates step 1, paragraph 3 of the adoption agency algorithm.
90 Line: 1 Col: 38 End tag (font) violates step 1, paragraph 3 of the adoption agency algorithm.
91 #document
92 | <!DOCTYPE html>
93 | <html>
94 | <head>
95 | <body>
96 | <font>
97 | <p>
98 | <font>
99 | <b>
100 | "test"
102 #data
103 <!DOCTYPE html><dt><div><dd>
104 #errors
105 Line: 1 Col: 28 Missing end tag (div, dt).
106 #document
107 | <!DOCTYPE html>
108 | <html>
109 | <head>
110 | <body>
111 | <dt>
112 | <div>
113 | <dd>
115 #data
116 <script></x
117 #errors
118 Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
119 Line: 1 Col: 11 Unexpected end of file. Expected end tag (script).
120 #document
121 | <html>
122 | <head>
123 | <script>
124 | "</x"
125 | <body>
127 #data
128 <table><plaintext><td>
129 #errors
130 Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
131 Line: 1 Col: 18 Unexpected start tag (plaintext) in table context caused voodoo mode.
132 Line: 1 Col: 22 Unexpected end of file. Expected table content.
133 #document
134 | <html>
135 | <head>
136 | <body>
137 | <plaintext>
138 | "<td>"
139 | <table>
141 #data
142 <plaintext></plaintext>
143 #errors
144 Line: 1 Col: 11 Unexpected start tag (plaintext). Expected DOCTYPE.
145 Line: 1 Col: 23 Expected closing tag. Unexpected end of file.
146 #document
147 | <html>
148 | <head>
149 | <body>
150 | <plaintext>
151 | "</plaintext>"
153 #data
154 <!DOCTYPE html><table><tr>TEST
155 #errors
156 Line: 1 Col: 30 Unexpected non-space characters in table context caused voodoo mode.
157 Line: 1 Col: 30 Unexpected end of file. Expected table content.
158 #document
159 | <!DOCTYPE html>
160 | <html>
161 | <head>
162 | <body>
163 | "TEST"
164 | <table>
165 | <tbody>
166 | <tr>
168 #data
169 <!DOCTYPE html><body t1=1><body t2=2><body t3=3 t4=4>
170 #errors
171 Line: 1 Col: 37 Unexpected start tag (body).
172 Line: 1 Col: 53 Unexpected start tag (body).
173 #document
174 | <!DOCTYPE html>
175 | <html>
176 | <head>
177 | <body>
178 | t1="1"
179 | t2="2"
180 | t3="3"
181 | t4="4"
183 #data
184 </b test
185 #errors
186 Line: 1 Col: 8 Unexpected end of file in attribute name.
187 Line: 1 Col: 8 End tag contains unexpected attributes.
188 Line: 1 Col: 8 Unexpected end tag (b). Expected DOCTYPE.
189 Line: 1 Col: 8 Unexpected end tag (b) after the (implied) root element.
190 #document
191 | <html>
192 | <head>
193 | <body>
195 #data
196 <!DOCTYPE html></b test<b &=&amp>X
197 #errors
198 Line: 1 Col: 32 Named entity didn't end with ';'.
199 Line: 1 Col: 33 End tag contains unexpected attributes.
200 Line: 1 Col: 33 Unexpected end tag (b) after the (implied) root element.
201 #document
202 | <!DOCTYPE html>
203 | <html>
204 | <head>
205 | <body>
206 | "X"
208 #data
209 <!doctypehtml><scrIPt type=text/x-foobar;baz>X</SCRipt
210 #errors
211 Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
212 Line: 1 Col: 54 Unexpected end of file in the tag name.
213 #document
214 | <!DOCTYPE html>
215 | <html>
216 | <head>
217 | <script>
218 | type="text/x-foobar;baz"
219 | "X</SCRipt"
220 | <body>
222 #data
224 #errors
225 Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
226 #document
227 | <html>
228 | <head>
229 | <body>
230 | "&"
232 #data
234 #errors
235 Line: 1 Col: 1 Numeric entity expected. Got end of file instead.
236 Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
237 #document
238 | <html>
239 | <head>
240 | <body>
241 | "&#"
243 #data
245 #errors
246 Line: 1 Col: 3 Numeric entity expected but none found.
247 Line: 1 Col: 3 Unexpected non-space characters. Expected DOCTYPE.
248 #document
249 | <html>
250 | <head>
251 | <body>
252 | "&#X"
254 #data
256 #errors
257 Line: 1 Col: 3 Numeric entity expected but none found.
258 Line: 1 Col: 3 Unexpected non-space characters. Expected DOCTYPE.
259 #document
260 | <html>
261 | <head>
262 | <body>
263 | "&#x"
265 #data
266 &#45
267 #errors
268 Line: 1 Col: 4 Numeric entity didn't end with ';'.
269 Line: 1 Col: 4 Unexpected non-space characters. Expected DOCTYPE.
270 #document
271 | <html>
272 | <head>
273 | <body>
274 | "-"
276 #data
277 &x-test
278 #errors
279 Line: 1 Col: 1 Named entity expected. Got none.
280 Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
281 #document
282 | <html>
283 | <head>
284 | <body>
285 | "&x-test"
287 #data
288 <!doctypehtml><p><li>
289 #errors
290 Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
291 #document
292 | <!DOCTYPE html>
293 | <html>
294 | <head>
295 | <body>
296 | <p>
297 | <li>
299 #data
300 <!doctypehtml><p><dt>
301 #errors
302 Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
303 #document
304 | <!DOCTYPE html>
305 | <html>
306 | <head>
307 | <body>
308 | <p>
309 | <dt>
311 #data
312 <!doctypehtml><p><dd>
313 #errors
314 Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
315 #document
316 | <!DOCTYPE html>
317 | <html>
318 | <head>
319 | <body>
320 | <p>
321 | <dd>
323 #data
324 <!doctypehtml><p><form>
325 #errors
326 Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
327 Line: 1 Col: 23 Expected closing tag. Unexpected end of file.
328 #document
329 | <!DOCTYPE html>
330 | <html>
331 | <head>
332 | <body>
333 | <p>
334 | <form>
336 #data
337 <!DOCTYPE html><p></P>X
338 #errors
339 #document
340 | <!DOCTYPE html>
341 | <html>
342 | <head>
343 | <body>
344 | <p>
345 | "X"
347 #data
348 &AMP
349 #errors
350 Line: 1 Col: 4 Named entity didn't end with ';'.
351 Line: 1 Col: 4 Unexpected non-space characters. Expected DOCTYPE.
352 #document
353 | <html>
354 | <head>
355 | <body>
356 | "&"
358 #data
359 &AMp;
360 #errors
361 Line: 1 Col: 1 Named entity expected. Got none.
362 Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
363 #document
364 | <html>
365 | <head>
366 | <body>
367 | "&AMp;"
369 #data
370 <!DOCTYPE html><html><head></head><body><thisISasillyTESTelementNameToMakeSureCrazyTagNamesArePARSEDcorrectLY>
371 #errors
372 Line: 1 Col: 110 Expected closing tag. Unexpected end of file.
373 #document
374 | <!DOCTYPE html>
375 | <html>
376 | <head>
377 | <body>
378 | <thisisasillytestelementnametomakesurecrazytagnamesareparsedcorrectly>
380 #data
381 <!DOCTYPE html>X</body>X
382 #errors
383 Line: 1 Col: 24 Unexpected non-space characters in the after body phase.
384 #document
385 | <!DOCTYPE html>
386 | <html>
387 | <head>
388 | <body>
389 | "XX"
391 #data
392 <!DOCTYPE html><!-- X
393 #errors
394 Line: 1 Col: 21 Unexpected end of file in comment.
395 #document
396 | <!DOCTYPE html>
397 | <!-- X -->
398 | <html>
399 | <head>
400 | <body>
402 #data
403 <!DOCTYPE html><table><caption>test TEST</caption><td>test
404 #errors
405 Line: 1 Col: 54 Unexpected table cell start tag (td) in the table body phase.
406 Line: 1 Col: 58 Expected closing tag. Unexpected end of file.
407 #document
408 | <!DOCTYPE html>
409 | <html>
410 | <head>
411 | <body>
412 | <table>
413 | <caption>
414 | "test TEST"
415 | <tbody>
416 | <tr>
417 | <td>
418 | "test"
420 #data
421 <!DOCTYPE html><select><option><optgroup>
422 #errors
423 Line: 1 Col: 41 Expected closing tag. Unexpected end of file.
424 #document
425 | <!DOCTYPE html>
426 | <html>
427 | <head>
428 | <body>
429 | <select>
430 | <option>
431 | <optgroup>
433 #data
434 <!DOCTYPE html><select><optgroup><option></optgroup><option><select><option>
435 #errors
436 Line: 1 Col: 68 Unexpected select start tag in the select phase treated as select end tag.
437 Line: 1 Col: 76 Expected closing tag. Unexpected end of file.
438 #document
439 | <!DOCTYPE html>
440 | <html>
441 | <head>
442 | <body>
443 | <select>
444 | <optgroup>
445 | <option>
446 | <option>
447 | <option>
449 #data
450 <!DOCTYPE html><select><optgroup><option><optgroup>
451 #errors
452 Line: 1 Col: 51 Expected closing tag. Unexpected end of file.
453 #document
454 | <!DOCTYPE html>
455 | <html>
456 | <head>
457 | <body>
458 | <select>
459 | <optgroup>
460 | <option>
461 | <optgroup>
463 #data
464 <!DOCTYPE html><font><input><input></font>
465 #errors
466 #document
467 | <!DOCTYPE html>
468 | <html>
469 | <head>
470 | <body>
471 | <font>
472 | <input>
473 | <input>
475 #data
476 <!DOCTYPE html><!-- XXX - XXX -->
477 #errors
478 #document
479 | <!DOCTYPE html>
480 | <!-- XXX - XXX -->
481 | <html>
482 | <head>
483 | <body>
485 #data
486 <!DOCTYPE html><!-- XXX - XXX
487 #errors
488 Line: 1 Col: 29 Unexpected end of file in comment (-)
489 #document
490 | <!DOCTYPE html>
491 | <!-- XXX - XXX -->
492 | <html>
493 | <head>
494 | <body>
496 #data
497 <!DOCTYPE html><!-- XXX - XXX - XXX -->
498 #errors
499 #document
500 | <!DOCTYPE html>
501 | <!-- XXX - XXX - XXX -->
502 | <html>
503 | <head>
504 | <body>
506 #data
507 <isindex test=x name=x>
508 #errors
509 Line: 1 Col: 23 Unexpected start tag (isindex). Expected DOCTYPE.
510 Line: 1 Col: 23 Unexpected start tag isindex. Don't use it!
511 #document
512 | <html>
513 | <head>
514 | <body>
515 | <form>
516 | <hr>
517 | <label>
518 | "This is a searchable index. Insert your search keywords here: "
519 | <input>
520 | name="isindex"
521 | test="x"
522 | <hr>
524 #data
525 test
526 test
527 #errors
528 Line: 2 Col: 4 Unexpected non-space characters. Expected DOCTYPE.
529 #document
530 | <html>
531 | <head>
532 | <body>
533 | "test
534 test"
536 #data
537 <!DOCTYPE html><body><title>test</body></title>
538 #errors
539 #document
540 | <!DOCTYPE html>
541 | <html>
542 | <head>
543 | <body>
544 | <title>
545 | "test</body>"
547 #data
548 <!DOCTYPE html><body><title>X</title><meta name=z><link rel=foo><style>
549 x { content:"</style" } </style>
550 #errors
551 #document
552 | <!DOCTYPE html>
553 | <html>
554 | <head>
555 | <body>
556 | <title>
557 | "X"
558 | <meta>
559 | name="z"
560 | <link>
561 | rel="foo"
562 | <style>
564 x { content:"</style" } "
566 #data
567 <!DOCTYPE html><select><optgroup></optgroup></select>
568 #errors
569 #document
570 | <!DOCTYPE html>
571 | <html>
572 | <head>
573 | <body>
574 | <select>
575 | <optgroup>
577 #data
580 #errors
581 Line: 2 Col: 1 Unexpected End of file. Expected DOCTYPE.
582 #document
583 | <html>
584 | <head>
585 | <body>
587 #data
588 <!DOCTYPE html> <html>
589 #errors
590 #document
591 | <!DOCTYPE html>
592 | <html>
593 | <head>
594 | <body>
596 #data
597 <!DOCTYPE html><script>
598 </script> <title>x</title> </head>
599 #errors
600 #document
601 | <!DOCTYPE html>
602 | <html>
603 | <head>
604 | <script>
607 | " "
608 | <title>
609 | "x"
610 | " "
611 | <body>
613 #data
614 <!DOCTYPE html><html><body><html id=x>
615 #errors
616 Line: 1 Col: 38 html needs to be the first start tag.
617 #document
618 | <!DOCTYPE html>
619 | <html>
620 | id="x"
621 | <head>
622 | <body>
624 #data
625 <!DOCTYPE html>X</body><html id="x">
626 #errors
627 Line: 1 Col: 36 Unexpected start tag token (html) in the after body phase.
628 Line: 1 Col: 36 html needs to be the first start tag.
629 #document
630 | <!DOCTYPE html>
631 | <html>
632 | id="x"
633 | <head>
634 | <body>
635 | "X"
637 #data
638 <!DOCTYPE html><head><html id=x>
639 #errors
640 Line: 1 Col: 32 html needs to be the first start tag.
641 #document
642 | <!DOCTYPE html>
643 | <html>
644 | id="x"
645 | <head>
646 | <body>
648 #data
649 <!DOCTYPE html>X</html>X
650 #errors
651 Line: 1 Col: 24 Unexpected non-space characters in the after body phase.
652 #document
653 | <!DOCTYPE html>
654 | <html>
655 | <head>
656 | <body>
657 | "XX"
659 #data
660 <!DOCTYPE html>X</html>
661 #errors
662 #document
663 | <!DOCTYPE html>
664 | <html>
665 | <head>
666 | <body>
667 | "X "
669 #data
670 <!DOCTYPE html>X</html><p>X
671 #errors
672 Line: 1 Col: 26 Unexpected start tag (p).
673 #document
674 | <!DOCTYPE html>
675 | <html>
676 | <head>
677 | <body>
678 | "X"
679 | <p>
680 | "X"
682 #data
683 <!DOCTYPE html>X<p/x/y/z>
684 #errors
685 Line: 1 Col: 19 Expected a > after the /.
686 Line: 1 Col: 21 Solidus (/) incorrectly placed in tag.
687 Line: 1 Col: 23 Solidus (/) incorrectly placed in tag.
688 #document
689 | <!DOCTYPE html>
690 | <html>
691 | <head>
692 | <body>
693 | "X"
694 | <p>
695 | x=""
696 | y=""
697 | z=""
699 #data
700 <!DOCTYPE html><!--x--
701 #errors
702 Line: 1 Col: 22 Unexpected end of file in comment (--).
703 #document
704 | <!DOCTYPE html>
705 | <!-- x -->
706 | <html>
707 | <head>
708 | <body>
710 #data
711 <!DOCTYPE html><table><tr><td></p></table>
712 #errors
713 Line: 1 Col: 34 Unexpected end tag (p). Ignored.
714 #document
715 | <!DOCTYPE html>
716 | <html>
717 | <head>
718 | <body>
719 | <table>
720 | <tbody>
721 | <tr>
722 | <td>
723 | <p>
725 #data
726 <!DOCTYPE <!DOCTYPE HTML>><!--<!--x-->-->
727 #errors
728 Line: 1 Col: 20 Expected space or '>'. Got ''
729 Line: 1 Col: 25 Erroneous DOCTYPE.
730 Line: 1 Col: 35 Unexpected character in comment found.
731 #document
732 | <!DOCTYPE <!doctype>
733 | <html>
734 | <head>
735 | <body>
736 | ">"
737 | <!-- <!--x -->
738 | "-->"