Skip to content

Commit 8e07f7b

Browse files
committed
And tree construction tests for the <main> element.
1 parent 1a21c6e commit 8e07f7b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

tree-construction/main-element.dat

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#data
2+
<!doctype html><p>foo<main>bar<p>baz
3+
#errors
4+
36: End of file seen and there were open elements.
5+
27: Unclosed element “main”.
6+
#document
7+
| <!DOCTYPE html>
8+
| <html>
9+
| <head>
10+
| <body>
11+
| <p>
12+
| "foo"
13+
| <main>
14+
| "bar"
15+
| <p>
16+
| "baz"
17+
18+
#data
19+
<!doctype html><main><p>foo</main>bar
20+
#errors
21+
#document
22+
| <!DOCTYPE html>
23+
| <html>
24+
| <head>
25+
| <body>
26+
| <main>
27+
| <p>
28+
| "foo"
29+
| "bar"

0 commit comments

Comments
 (0)