1#data
2<!doctype html><p>foo<main>bar<p>baz
3#errors
4(1,36): expected-closing-tag-but-got-eof
5#document
6| <!DOCTYPE html>
7| <html>
8|   <head>
9|   <body>
10|     <p>
11|       "foo"
12|     <main>
13|       "bar"
14|       <p>
15|         "baz"
16
17#data
18<!doctype html><main><p>foo</main>bar
19#errors
20#document
21| <!DOCTYPE html>
22| <html>
23|   <head>
24|   <body>
25|     <main>
26|       <p>
27|         "foo"
28|     "bar"
29
30#data
31<!DOCTYPE html>xxx<svg><x><g><a><main><b>
32#errors
33 * (1,42) unexpected HTML-like start tag token in foreign content
34 * (1,42) unexpected end of file
35#document
36| <!DOCTYPE html>
37| <html>
38|   <head>
39|   <body>
40|     "xxx"
41|     <svg svg>
42|       <svg x>
43|         <svg g>
44|           <svg a>
45|             <svg main>
46|     <b>
47