1#data
2<!DOCTYPE html><p><b><i><u></p> <p>X
3#errors
4Line: 1 Col: 31 Unexpected end tag (p). Ignored.
5Line: 1 Col: 36 Expected closing tag. Unexpected end of file.
6#document
7| <!DOCTYPE html>
8| <html>
9|   <head>
10|   <body>
11|     <p>
12|       <b>
13|         <i>
14|           <u>
15|     <b>
16|       <i>
17|         <u>
18|           " "
19|           <p>
20|             "X"
21
22#data
23<p><b><i><u></p>
24<p>X
25#errors
26Line: 1 Col: 3 Unexpected start tag (p). Expected DOCTYPE.
27Line: 1 Col: 16 Unexpected end tag (p). Ignored.
28Line: 2 Col: 4 Expected closing tag. Unexpected end of file.
29#document
30| <html>
31|   <head>
32|   <body>
33|     <p>
34|       <b>
35|         <i>
36|           <u>
37|     <b>
38|       <i>
39|         <u>
40|           "
41"
42|           <p>
43|             "X"
44
45#data
46<!doctype html></html> <head>
47#errors
48Line: 1 Col: 22 Unexpected end tag (html) after the (implied) root element.
49#document
50| <!DOCTYPE html>
51| <html>
52|   <head>
53|   <body>
54|     " "
55
56#data
57<!doctype html></body><meta>
58#errors
59Line: 1 Col: 22 Unexpected end tag (body) after the (implied) root element.
60#document
61| <!DOCTYPE html>
62| <html>
63|   <head>
64|   <body>
65|     <meta>
66
67#data
68<html></html><!-- foo -->
69#errors
70Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
71Line: 1 Col: 13 Unexpected end tag (html) after the (implied) root element.
72#document
73| <html>
74|   <head>
75|   <body>
76| <!--  foo  -->
77
78#data
79<!doctype html></body><title>X</title>
80#errors
81Line: 1 Col: 22 Unexpected end tag (body) after the (implied) root element.
82#document
83| <!DOCTYPE html>
84| <html>
85|   <head>
86|   <body>
87|     <title>
88|       "X"
89
90#data
91<!doctype html><table> X<meta></table>
92#errors
93Line: 1 Col: 24 Unexpected non-space characters in table context caused voodoo mode.
94Line: 1 Col: 30 Unexpected start tag (meta) in table context caused voodoo mode.
95#document
96| <!DOCTYPE html>
97| <html>
98|   <head>
99|   <body>
100|     " X"
101|     <meta>
102|     <table>
103
104#data
105<!doctype html><table> x</table>
106#errors
107Line: 1 Col: 24 Unexpected non-space characters in table context caused voodoo mode.
108#document
109| <!DOCTYPE html>
110| <html>
111|   <head>
112|   <body>
113|     " x"
114|     <table>
115
116#data
117<!doctype html><table> x </table>
118#errors
119Line: 1 Col: 25 Unexpected non-space characters in table context caused voodoo mode.
120#document
121| <!DOCTYPE html>
122| <html>
123|   <head>
124|   <body>
125|     " x "
126|     <table>
127
128#data
129<!doctype html><table><tr> x</table>
130#errors
131Line: 1 Col: 28 Unexpected non-space characters in table context caused voodoo mode.
132#document
133| <!DOCTYPE html>
134| <html>
135|   <head>
136|   <body>
137|     " x"
138|     <table>
139|       <tbody>
140|         <tr>
141
142#data
143<!doctype html><table>X<style> <tr>x </style> </table>
144#errors
145Line: 1 Col: 23 Unexpected non-space characters in table context caused voodoo mode.
146#document
147| <!DOCTYPE html>
148| <html>
149|   <head>
150|   <body>
151|     "X"
152|     <table>
153|       <style>
154|         " <tr>x "
155|       " "
156
157#data
158<!doctype html><div><table><a>foo</a> <tr><td>bar</td> </tr></table></div>
159#errors
160Line: 1 Col: 30 Unexpected start tag (a) in table context caused voodoo mode.
161Line: 1 Col: 37 Unexpected end tag (a) in table context caused voodoo mode.
162#document
163| <!DOCTYPE html>
164| <html>
165|   <head>
166|   <body>
167|     <div>
168|       <a>
169|         "foo"
170|       <table>
171|         " "
172|         <tbody>
173|           <tr>
174|             <td>
175|               "bar"
176|             " "
177
178#data
179<frame></frame></frame><frameset><frame><frameset><frame></frameset><noframes></frameset><noframes>
180#errors
1816: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
18213: Stray start tag “frame”.
18321: Stray end tag “frame”.
18429: Stray end tag “frame”.
18539: “frameset” start tag after “body” already open.
186105: End of file seen inside an [R]CDATA element.
187105: End of file seen and there were open elements.
188XXX: These errors are wrong, please fix me!
189#document
190| <html>
191|   <head>
192|   <frameset>
193|     <frame>
194|     <frameset>
195|       <frame>
196|     <noframes>
197|       "</frameset><noframes>"
198
199#data
200<!DOCTYPE html><object></html>
201#errors
2021: Expected closing tag. Unexpected end of file
203#document
204| <!DOCTYPE html>
205| <html>
206|   <head>
207|   <body>
208|     <object>
209