summaryrefslogtreecommitdiff
path: root/test/data/tree-construction/main-element.dat
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/tree-construction/main-element.dat')
-rw-r--r--test/data/tree-construction/main-element.dat44
1 files changed, 44 insertions, 0 deletions
diff --git a/test/data/tree-construction/main-element.dat b/test/data/tree-construction/main-element.dat
new file mode 100644
index 0000000..0d2102e
--- /dev/null
+++ b/test/data/tree-construction/main-element.dat
@@ -0,0 +1,44 @@
+#data
+<!doctype html><p>foo<main>bar<p>baz
+#errors
+(1,36): expected-closing-tag-but-got-eof
+#document
+| <!DOCTYPE html>
+| <html>
+| <head>
+| <body>
+| <p>
+| "foo"
+| <main>
+| "bar"
+| <p>
+| "baz"
+
+#data
+<!doctype html><main><p>foo</main>bar
+#errors
+#document
+| <!DOCTYPE html>
+| <html>
+| <head>
+| <body>
+| <main>
+| <p>
+| "foo"
+| "bar"
+
+#data
+<!DOCTYPE html>xxx<svg><x><g><a><main><b>
+#errors
+#document
+| <!DOCTYPE html>
+| <html>
+| <head>
+| <body>
+| "xxx"
+| <svg svg>
+| <svg x>
+| <svg g>
+| <svg a>
+| <svg main>
+| <b>