diff --git a/html/syntax/parsing/foster-parenting-into-document-with-element-child.html b/html/syntax/parsing/foster-parenting-into-document-with-element-child.html
new file mode 100644
index 00000000000000..b1695895f3cf64
--- /dev/null
+++ b/html/syntax/parsing/foster-parenting-into-document-with-element-child.html
@@ -0,0 +1,36 @@
+
+
+
Foster parenting into another Document that already has an element child
+
+
+
+
+
diff --git a/html/syntax/parsing/html5lib_url.html b/html/syntax/parsing/html5lib_url.html
index e6ef92dc14df72..f2e0e80f06cd0b 100644
--- a/html/syntax/parsing/html5lib_url.html
+++ b/html/syntax/parsing/html5lib_url.html
@@ -29,6 +29,7 @@
+
diff --git a/html/syntax/parsing/html5lib_write.html b/html/syntax/parsing/html5lib_write.html
index 8e51b17307eb34..bc7aded5d55d81 100644
--- a/html/syntax/parsing/html5lib_write.html
+++ b/html/syntax/parsing/html5lib_write.html
@@ -27,6 +27,7 @@
+
diff --git a/html/syntax/parsing/html5lib_write_single.html b/html/syntax/parsing/html5lib_write_single.html
index 2b0079ba8cce69..d5967d0d0d0b01 100644
--- a/html/syntax/parsing/html5lib_write_single.html
+++ b/html/syntax/parsing/html5lib_write_single.html
@@ -27,6 +27,7 @@
+
diff --git a/html/syntax/parsing/resources/scripted_foster01.dat b/html/syntax/parsing/resources/scripted_foster01.dat
new file mode 100644
index 00000000000000..a99760a39b7603
--- /dev/null
+++ b/html/syntax/parsing/resources/scripted_foster01.dat
@@ -0,0 +1,21 @@
+#data
+
+#errors
+#script-on
+#document
+|
+|
+|
+| FOSTERTEXT
+#errors
+#script-on
+#document
+|