diff --git a/tree-construction/quirks01.dat b/tree-construction/quirks01.dat
new file mode 100644
index 0000000..bc58de5
--- /dev/null
+++ b/tree-construction/quirks01.dat
@@ -0,0 +1,53 @@
+#data
+
+#errors
+(2,54): unknown-doctype
+(2,64): eof-in-table
+#document
+|
+|
+|
+|
+|
+|
+
+#data
+
+#errors
+(1,83): unknown-doctype
+(1,93): eof-in-table
+#document
+|
+|
+|
+|
+|
+|
+
+#data
+
+#errors
+(1,30): unknown-doctype
+(1,39): eof-in-table
+#document
+|
+|
+|
+|
+|
+|
+
+#data
+
+#errors
+(2,43): unknown-doctype
+(2,53): eof-in-table
+#document
+|
+|
+|
+|
+|
+|
diff --git a/tree-construction/tables01.dat b/tree-construction/tables01.dat
index decd68b..aa7915e 100644
--- a/tree-construction/tables01.dat
+++ b/tree-construction/tables01.dat
@@ -306,3 +306,17 @@
|
|
|
+
+#data
+a
+#errors
+(1,1): expected-doctype-but-got-start-tag
+(1,8): illegal-character-token
+(1,9): illegal-doctype
+(1,24): expected-closing-tag-but-got-eof
+#document
+|
+|
+|
+| "a"
+|
diff --git a/tree-construction/tests2.dat b/tree-construction/tests2.dat
index b44fec4..11ef9b1 100644
--- a/tree-construction/tests2.dat
+++ b/tree-construction/tests2.dat
@@ -584,6 +584,16 @@
|
|
+#data
+
+#errors
+Line: 1 Col: 31 Unexpected DOCTYPE. Ignored.
+#document
+|
+|
+|
+|
+
#data
test
test
diff --git a/tree-construction/tests4.dat b/tree-construction/tests4.dat
index 0a6174c..4f0cf70 100644
--- a/tree-construction/tests4.dat
+++ b/tree-construction/tests4.dat
@@ -56,3 +56,19 @@ head
#document
|
| "setting head's innerHTML"
+
+#data
+direct content
+#errors
+#document-fragment
+title
+#document
+| "direct content"
+
+#data
+
+#errors
+#document-fragment
+script
+#document
+| ""
diff --git a/tree-construction/tests7.dat b/tree-construction/tests7.dat
index 8c5596b..b2db4de 100644
--- a/tree-construction/tests7.dat
+++ b/tree-construction/tests7.dat
@@ -46,6 +46,42 @@
| "X"
|
+#data
+X
+#errors
+(1,28): unexpected-start-tag-out-of-my-head
+#document
+|
+|
+|
+|
+|
+| "X"
+
+#data
+X
+#errors
+(1,32): unexpected-start-tag-out-of-my-head
+#document
+|
+|
+|
+|
+|
+| "X"
+
+#data
+X
+#errors
+(1,31): unexpected-start-tag-out-of-my-head
+#document
+|
+|
+|
+|
+|
+| "X"
+
#data
#errors