1#data
2Test
3#errors
4(1,4): expected-doctype-but-got-chars
5#document
6| <html>
7|   <head>
8|   <body>
9|     "Test"
10
11#data
12<div></div>
13#errors
14(1,5): expected-doctype-but-got-start-tag
15#document
16| <html>
17|   <head>
18|   <body>
19|     <div>
20
21#data
22<div>Test</div>
23#errors
24(1,5): expected-doctype-but-got-start-tag
25#document
26| <html>
27|   <head>
28|   <body>
29|     <div>
30|       "Test"
31
32#data
33<di
34#errors
35(1,3): eof-in-tag-name
36(1,3): expected-doctype-but-got-eof
37#new-errors
38(1:4) eof-in-tag
39#document
40| <html>
41|   <head>
42|   <body>
43
44#data
45<div>Hello</div>
46<script>
47console.log("PASS");
48</script>
49<div>Bye</div>
50#errors
51(1,5): expected-doctype-but-got-start-tag
52#document
53| <html>
54|   <head>
55|   <body>
56|     <div>
57|       "Hello"
58|     "
59"
60|     <script>
61|       "
62console.log("PASS");
63"
64|     "
65"
66|     <div>
67|       "Bye"
68
69#data
70<div foo="bar">Hello</div>
71#errors
72(1,15): expected-doctype-but-got-start-tag
73#document
74| <html>
75|   <head>
76|   <body>
77|     <div>
78|       foo="bar"
79|       "Hello"
80
81#data
82<div>Hello</div>
83<script>
84console.log("FOO<span>BAR</span>BAZ");
85</script>
86<div>Bye</div>
87#errors
88(1,5): expected-doctype-but-got-start-tag
89#document
90| <html>
91|   <head>
92|   <body>
93|     <div>
94|       "Hello"
95|     "
96"
97|     <script>
98|       "
99console.log("FOO<span>BAR</span>BAZ");
100"
101|     "
102"
103|     <div>
104|       "Bye"
105
106#data
107<foo bar="baz"></foo><potato quack="duck"></potato>
108#errors
109(1,15): expected-doctype-but-got-start-tag
110#document
111| <html>
112|   <head>
113|   <body>
114|     <foo>
115|       bar="baz"
116|     <potato>
117|       quack="duck"
118
119#data
120<foo bar="baz"><potato quack="duck"></potato></foo>
121#errors
122(1,15): expected-doctype-but-got-start-tag
123#document
124| <html>
125|   <head>
126|   <body>
127|     <foo>
128|       bar="baz"
129|       <potato>
130|         quack="duck"
131
132#data
133<foo></foo bar="baz"><potato></potato quack="duck">
134#errors
135(1,5): expected-doctype-but-got-start-tag
136(1,21): attributes-in-end-tag
137(1,51): attributes-in-end-tag
138#new-errors
139(1:21) end-tag-with-attributes
140(1:51) end-tag-with-attributes
141#document
142| <html>
143|   <head>
144|   <body>
145|     <foo>
146|     <potato>
147
148#data
149</ tttt>
150#errors
151(1,2): expected-closing-tag-but-got-char
152(1,8): expected-doctype-but-got-eof
153#new-errors
154(1:3) invalid-first-character-of-tag-name
155#document
156| <!--  tttt -->
157| <html>
158|   <head>
159|   <body>
160
161#data
162<div FOO ><img><img></div>
163#errors
164(1,10): expected-doctype-but-got-start-tag
165#document
166| <html>
167|   <head>
168|   <body>
169|     <div>
170|       foo=""
171|       <img>
172|       <img>
173
174#data
175<p>Test</p<p>Test2</p>
176#errors
177(1,3): expected-doctype-but-got-start-tag
178(1,13): unexpected-end-tag
179#document
180| <html>
181|   <head>
182|   <body>
183|     <p>
184|       "TestTest2"
185
186#data
187<rdar://problem/6869687>
188#errors
189(1,7): unexpected-character-after-solidus-in-tag
190(1,8): unexpected-character-after-solidus-in-tag
191(1,16): unexpected-character-after-solidus-in-tag
192(1,24): expected-doctype-but-got-start-tag
193(1,24): expected-closing-tag-but-got-eof
194#new-errors
195(1:8) unexpected-solidus-in-tag
196(1:9) unexpected-solidus-in-tag
197(1:17) unexpected-solidus-in-tag
198#document
199| <html>
200|   <head>
201|   <body>
202|     <rdar:>
203|       6869687=""
204|       problem=""
205
206#data
207<A>test< /A>
208#errors
209(1,3): expected-doctype-but-got-start-tag
210(1,8): expected-tag-name
211(1,12): expected-closing-tag-but-got-eof
212#new-errors
213(1:9) invalid-first-character-of-tag-name
214#document
215| <html>
216|   <head>
217|   <body>
218|     <a>
219|       "test< /A>"
220
221#data
222&lt;
223#errors
224(1,4): expected-doctype-but-got-chars
225#document
226| <html>
227|   <head>
228|   <body>
229|     "<"
230
231#data
232<body foo='bar'><body foo='baz' yo='mama'>
233#errors
234(1,16): expected-doctype-but-got-start-tag
235(1,42): unexpected-start-tag
236#document
237| <html>
238|   <head>
239|   <body>
240|     foo="bar"
241|     yo="mama"
242
243#data
244<body></br foo="bar"></body>
245#errors
246(1,6): expected-doctype-but-got-start-tag
247(1,21): attributes-in-end-tag
248(1,21): unexpected-end-tag-treated-as
249#new-errors
250(1:21) end-tag-with-attributes
251#document
252| <html>
253|   <head>
254|   <body>
255|     <br>
256
257#data
258<bdy><br foo="bar"></body>
259#errors
260(1,5): expected-doctype-but-got-start-tag
261(1,26): expected-one-end-tag-but-got-another
262#document
263| <html>
264|   <head>
265|   <body>
266|     <bdy>
267|       <br>
268|         foo="bar"
269
270#data
271<body></body></br foo="bar">
272#errors
273(1,6): expected-doctype-but-got-start-tag
274(1,28): attributes-in-end-tag
275(1,28): unexpected-end-tag-after-body
276(1,28): unexpected-end-tag-treated-as
277#new-errors
278(1:28) end-tag-with-attributes
279#document
280| <html>
281|   <head>
282|   <body>
283|     <br>
284
285#data
286<bdy></body><br foo="bar">
287#errors
288(1,5): expected-doctype-but-got-start-tag
289(1,12): expected-one-end-tag-but-got-another
290(1,26): unexpected-start-tag-after-body
291(1,26): expected-closing-tag-but-got-eof
292#document
293| <html>
294|   <head>
295|   <body>
296|     <bdy>
297|       <br>
298|         foo="bar"
299
300#data
301<html><body></body></html><!-- Hi there -->
302#errors
303(1,6): expected-doctype-but-got-start-tag
304#document
305| <html>
306|   <head>
307|   <body>
308| <!--  Hi there  -->
309
310#data
311<html><body></body></html><!-- Comment A --><!-- Comment B --><!-- Comment C --><!-- Comment D --><!-- Comment E -->
312#errors
313(1,6): expected-doctype-but-got-start-tag
314#document
315| <html>
316|   <head>
317|   <body>
318| <!--  Comment A  -->
319| <!--  Comment B  -->
320| <!--  Comment C  -->
321| <!--  Comment D  -->
322| <!--  Comment E  -->
323
324#data
325<html><body></body></html>x<!-- Hi there -->
326#errors
327(1,6): expected-doctype-but-got-start-tag
328(1,27): expected-eof-but-got-char
329#document
330| <html>
331|   <head>
332|   <body>
333|     "x"
334|     <!--  Hi there  -->
335
336#data
337<html><body></body></html>x<!-- Hi there --></html><!-- Again -->
338#errors
339(1,6): expected-doctype-but-got-start-tag
340(1,27): expected-eof-but-got-char
341#document
342| <html>
343|   <head>
344|   <body>
345|     "x"
346|     <!--  Hi there  -->
347| <!--  Again  -->
348
349#data
350<html><body></body></html>x<!-- Hi there --></body></html><!-- Again -->
351#errors
352(1,6): expected-doctype-but-got-start-tag
353(1,27): expected-eof-but-got-char
354#document
355| <html>
356|   <head>
357|   <body>
358|     "x"
359|     <!--  Hi there  -->
360| <!--  Again  -->
361
362#data
363<html><body><ruby><div><rp>xx</rp></div></ruby></body></html>
364#errors
365(1,6): expected-doctype-but-got-start-tag
366(1,27): XXX-undefined-error
367#document
368| <html>
369|   <head>
370|   <body>
371|     <ruby>
372|       <div>
373|         <rp>
374|           "xx"
375
376#data
377<html><body><ruby><div><rt>xx</rt></div></ruby></body></html>
378#errors
379(1,6): expected-doctype-but-got-start-tag
380(1,27): XXX-undefined-error
381#document
382| <html>
383|   <head>
384|   <body>
385|     <ruby>
386|       <div>
387|         <rt>
388|           "xx"
389
390#data
391<html><frameset><!--1--><noframes>A</noframes><!--2--></frameset><!--3--><noframes>B</noframes><!--4--></html><!--5--><noframes>C</noframes><!--6-->
392#errors
393(1,6): expected-doctype-but-got-start-tag
394#document
395| <html>
396|   <head>
397|   <frameset>
398|     <!-- 1 -->
399|     <noframes>
400|       "A"
401|     <!-- 2 -->
402|   <!-- 3 -->
403|   <noframes>
404|     "B"
405|   <!-- 4 -->
406|   <noframes>
407|     "C"
408| <!-- 5 -->
409| <!-- 6 -->
410
411#data
412<select><option>A<select><option>B<select><option>C<select><option>D<select><option>E<select><option>F<select><option>G<select>
413#errors
414(1,8): expected-doctype-but-got-start-tag
415(1,25): unexpected-select-in-select
416(1,59): unexpected-select-in-select
417(1,93): unexpected-select-in-select
418(1,127): unexpected-select-in-select
419#document
420| <html>
421|   <head>
422|   <body>
423|     <select>
424|       <option>
425|         "A"
426|     <option>
427|       "B"
428|       <select>
429|         <option>
430|           "C"
431|     <option>
432|       "D"
433|       <select>
434|         <option>
435|           "E"
436|     <option>
437|       "F"
438|       <select>
439|         <option>
440|           "G"
441
442#data
443<dd><dd><dt><dt><dd><li><li>
444#errors
445(1,4): expected-doctype-but-got-start-tag
446#document
447| <html>
448|   <head>
449|   <body>
450|     <dd>
451|     <dd>
452|     <dt>
453|     <dt>
454|     <dd>
455|       <li>
456|       <li>
457
458#data
459<div><b></div><div><nobr>a<nobr>
460#errors
461(1,5): expected-doctype-but-got-start-tag
462(1,14): end-tag-too-early
463(1,32): unexpected-start-tag-implies-end-tag
464(1,32): expected-closing-tag-but-got-eof
465#document
466| <html>
467|   <head>
468|   <body>
469|     <div>
470|       <b>
471|     <div>
472|       <b>
473|         <nobr>
474|           "a"
475|         <nobr>
476
477#data
478<head></head>
479<body></body>
480#errors
481(1,6): expected-doctype-but-got-start-tag
482#document
483| <html>
484|   <head>
485|   "
486"
487|   <body>
488
489#data
490<head></head> <style></style>ddd
491#errors
492(1,6): expected-doctype-but-got-start-tag
493(1,21): unexpected-start-tag-out-of-my-head
494#document
495| <html>
496|   <head>
497|     <style>
498|   " "
499|   <body>
500|     "ddd"
501
502#data
503<kbd><table></kbd><col><select><tr>
504#errors
505(1,5): expected-doctype-but-got-start-tag
506(1,18): unexpected-end-tag-implies-table-voodoo
507(1,18): unexpected-end-tag
508(1,31): unexpected-start-tag-implies-table-voodoo
509(1,35): unexpected-table-element-start-tag-in-select-in-table
510(1,35): eof-in-table
511#document
512| <html>
513|   <head>
514|   <body>
515|     <kbd>
516|       <select>
517|       <table>
518|         <colgroup>
519|           <col>
520|         <tbody>
521|           <tr>
522
523#data
524<kbd><table></kbd><col><select><tr></table><div>
525#errors
526(1,5): expected-doctype-but-got-start-tag
527(1,18): unexpected-end-tag-implies-table-voodoo
528(1,18): unexpected-end-tag
529(1,31): unexpected-start-tag-implies-table-voodoo
530(1,35): unexpected-table-element-start-tag-in-select-in-table
531(1,48): expected-closing-tag-but-got-eof
532#document
533| <html>
534|   <head>
535|   <body>
536|     <kbd>
537|       <select>
538|       <table>
539|         <colgroup>
540|           <col>
541|         <tbody>
542|           <tr>
543|       <div>
544
545#data
546<a><li><style></style><title></title></a>
547#errors
548(1,3): expected-doctype-but-got-start-tag
549(1,41): adoption-agency-1.3
550#document
551| <html>
552|   <head>
553|   <body>
554|     <a>
555|     <li>
556|       <a>
557|         <style>
558|         <title>
559
560#data
561<font></p><p><meta><title></title></font>
562#errors
563(1,6): expected-doctype-but-got-start-tag
564(1,10): unexpected-end-tag
565(1,41): adoption-agency-1.3
566#document
567| <html>
568|   <head>
569|   <body>
570|     <font>
571|       <p>
572|     <p>
573|       <font>
574|         <meta>
575|         <title>
576
577#data
578<a><center><title></title><a>
579#errors
580(1,3): expected-doctype-but-got-start-tag
581(1,29): unexpected-start-tag-implies-end-tag
582(1,29): adoption-agency-1.3
583(1,29): expected-closing-tag-but-got-eof
584#document
585| <html>
586|   <head>
587|   <body>
588|     <a>
589|     <center>
590|       <a>
591|         <title>
592|       <a>
593
594#data
595<svg><title><div>
596#errors
597(1,5): expected-doctype-but-got-start-tag
598(1,17): expected-closing-tag-but-got-eof
599#document
600| <html>
601|   <head>
602|   <body>
603|     <svg svg>
604|       <svg title>
605|         <div>
606
607#data
608<svg><title><rect><div>
609#errors
610(1,5): expected-doctype-but-got-start-tag
611(1,23): expected-closing-tag-but-got-eof
612#document
613| <html>
614|   <head>
615|   <body>
616|     <svg svg>
617|       <svg title>
618|         <rect>
619|           <div>
620
621#data
622<svg><title><svg><div>
623#errors
624(1,5): expected-doctype-but-got-start-tag
625(1,22): unexpected-html-element-in-foreign-content
626(1,22): expected-closing-tag-but-got-eof
627#document
628| <html>
629|   <head>
630|   <body>
631|     <svg svg>
632|       <svg title>
633|         <svg svg>
634|         <div>
635
636#data
637<img <="" FAIL>
638#errors
639(1,6): invalid-character-in-attribute-name
640(1,15): expected-doctype-but-got-start-tag
641#new-errors
642(1:6) unexpected-character-in-attribute-name
643#document
644| <html>
645|   <head>
646|   <body>
647|     <img>
648|       <=""
649|       fail=""
650
651#data
652<ul><li><div id='foo'/>A</li><li>B<div>C</div></li></ul>
653#errors
654(1,4): expected-doctype-but-got-start-tag
655(1,23): non-void-element-with-trailing-solidus
656(1,29): end-tag-too-early
657#new-errors
658(1:9-1:24) non-void-html-element-start-tag-with-trailing-solidus
659#document
660| <html>
661|   <head>
662|   <body>
663|     <ul>
664|       <li>
665|         <div>
666|           id="foo"
667|           "A"
668|       <li>
669|         "B"
670|         <div>
671|           "C"
672
673#data
674<svg><em><desc></em>
675#errors
676(1,5): expected-doctype-but-got-start-tag
677(1,9): unexpected-html-element-in-foreign-content
678(1,20): adoption-agency-1.3
679#document
680| <html>
681|   <head>
682|   <body>
683|     <svg svg>
684|     <em>
685|       <desc>
686
687#data
688<table><tr><td><svg><desc><td></desc><circle>
689#errors
690#document
691| <html>
692|   <head>
693|   <body>
694|     <table>
695|       <tbody>
696|         <tr>
697|           <td>
698|             <svg svg>
699|               <svg desc>
700|           <td>
701|             <circle>
702
703#data
704<svg><tfoot></mi><td>
705#errors
706(1,5): expected-doctype-but-got-start-tag
707(1,17): unexpected-end-tag
708(1,17): unexpected-end-tag
709(1,21): expected-closing-tag-but-got-eof
710#document
711| <html>
712|   <head>
713|   <body>
714|     <svg svg>
715|       <svg tfoot>
716|         <svg td>
717
718#data
719<math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math>
720#errors
721(1,6): expected-doctype-but-got-start-tag
722#document
723| <html>
724|   <head>
725|   <body>
726|     <math math>
727|       <math mrow>
728|         <math mrow>
729|           <math mn>
730|             "1"
731|         <math mi>
732|           "a"
733
734#data
735<!doctype html><input type="hidden"><frameset>
736#errors
737(1,46): unexpected-start-tag
738(1,46): eof-in-frameset
739#document
740| <!DOCTYPE html>
741| <html>
742|   <head>
743|   <frameset>
744
745#data
746<!doctype html><input type="button"><frameset>
747#errors
748(1,46): unexpected-start-tag
749#document
750| <!DOCTYPE html>
751| <html>
752|   <head>
753|   <body>
754|     <input>
755|       type="button"
756