diff --git a/mozilla/htmlparser/tests/html/124788.html b/mozilla/htmlparser/tests/html/124788.html
new file mode 100644
index 00000000000..5670d40f8a7
--- /dev/null
+++ b/mozilla/htmlparser/tests/html/124788.html
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mozilla/htmlparser/tests/html/142965.html b/mozilla/htmlparser/tests/html/142965.html
new file mode 100644
index 00000000000..d29b56c4812
--- /dev/null
+++ b/mozilla/htmlparser/tests/html/142965.html
@@ -0,0 +1,8 @@
+
+
+
Please Enter your Homesite Login, E-mail and Password to delete
+
+
+
diff --git a/mozilla/htmlparser/tests/html/18308.html b/mozilla/htmlparser/tests/html/18308.html
new file mode 100644
index 00000000000..535c1d60a65
--- /dev/null
+++ b/mozilla/htmlparser/tests/html/18308.html
@@ -0,0 +1,14 @@
+parserspace.html
+
+
+The head and body tags appear side by side in this test: </HEAD><BODY> so you should not see an [object Text] between the ending head and beginning body tags.
+
+undefined undefined undefined
+
\ No newline at end of file
diff --git a/mozilla/htmlparser/tests/html/20087.html b/mozilla/htmlparser/tests/html/20087.html
new file mode 100644
index 00000000000..31b748a25e5
--- /dev/null
+++ b/mozilla/htmlparser/tests/html/20087.html
@@ -0,0 +1,17 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mozilla/htmlparser/tests/html/22263.html b/mozilla/htmlparser/tests/html/22263.html
new file mode 100644
index 00000000000..733d22b0f14
--- /dev/null
+++ b/mozilla/htmlparser/tests/html/22263.html
@@ -0,0 +1,8 @@
+
+
+
A
+
B
+
C
+
+
+
\ No newline at end of file
diff --git a/mozilla/htmlparser/tests/html/30487.html b/mozilla/htmlparser/tests/html/30487.html
new file mode 100644
index 00000000000..acffe93fc67
--- /dev/null
+++ b/mozilla/htmlparser/tests/html/30487.html
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+This text, in the body, is in "Font Face A"
+
+
+
+
+
+ This text, in a table, is in "Font Face B". Immediately following
+this text is a close font tag, and another erroneously placed close font
+tag.
+
+
+
+
This text, back in the body, should be in Font Face A,
+but is not because Mozilla incorrectly heeded the second close-font tag in
+the above table.
+
+
\ No newline at end of file
diff --git a/mozilla/htmlparser/tests/html/32782.html b/mozilla/htmlparser/tests/html/32782.html
new file mode 100644
index 00000000000..4a0f94b4aa1
--- /dev/null
+++ b/mozilla/htmlparser/tests/html/32782.html
@@ -0,0 +1,8 @@
+
+
+
+
+
+
***
***
+
+
\ No newline at end of file
diff --git a/mozilla/htmlparser/tests/html/40855.html b/mozilla/htmlparser/tests/html/40855.html
new file mode 100644
index 00000000000..e6fc8197a84
--- /dev/null
+++ b/mozilla/htmlparser/tests/html/40855.html
@@ -0,0 +1,10 @@
+
+
+
+
+This should be on all one line... but it isn't
+
+
+
+
+
\ No newline at end of file
diff --git a/mozilla/htmlparser/tests/html/44479.html b/mozilla/htmlparser/tests/html/44479.html
new file mode 100644
index 00000000000..7b2a1e1ee67
--- /dev/null
+++ b/mozilla/htmlparser/tests/html/44479.html
@@ -0,0 +1,27 @@
+BUTTON in SPAN in SPAN / SPAN in BUTTON in SPAN
+
+
+
+
BUTTON in SPAN in SPAN
+
+
+
+
+
+
Text after button
+
+
+
+
SPAN in BUTTON in SPAN
+
+
+
+
Text after button
+
+
\ No newline at end of file
diff --git a/mozilla/htmlparser/tests/html/48351.html b/mozilla/htmlparser/tests/html/48351.html
new file mode 100644
index 00000000000..4b52c6cefe1
--- /dev/null
+++ b/mozilla/htmlparser/tests/html/48351.html
@@ -0,0 +1,13 @@
+Mozilla Tests: An XHTML Document
+
+
+
+
+
An XHTML Document
+
This document is being parsed as XHTML.
+
This should not be emphasised text.
+
This should be a second paragraph.
+
\ No newline at end of file
diff --git a/mozilla/htmlparser/tests/html/51161.html b/mozilla/htmlparser/tests/html/51161.html
new file mode 100644
index 00000000000..cd3c4d13270
--- /dev/null
+++ b/mozilla/htmlparser/tests/html/51161.html
@@ -0,0 +1,7 @@
+
+
+
+
text text text text
+
\ No newline at end of file
diff --git a/mozilla/htmlparser/tests/html/54651.html b/mozilla/htmlparser/tests/html/54651.html
new file mode 100644
index 00000000000..644fb5778d2
--- /dev/null
+++ b/mozilla/htmlparser/tests/html/54651.html
@@ -0,0 +1,37 @@
+Child Selectors Test
+
+
+
+
+
+
Below this box, every box should be within another. In other
+ words, the only SIBLINGS in this document should be this box and the
+ immediate next one. In particular, LI should allow the inner DIV to
+ nest within it.
+
+
+ DIV
+
+
+ LI
+
+ DIV
+
+ P
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mozilla/htmlparser/tests/html/77746.html b/mozilla/htmlparser/tests/html/77746.html
new file mode 100644
index 00000000000..a042fa144c1
--- /dev/null
+++ b/mozilla/htmlparser/tests/html/77746.html
@@ -0,0 +1,3 @@
+
+
bold red
neither bold nor red
+
\ No newline at end of file
diff --git a/mozilla/htmlparser/tests/html/79492.html b/mozilla/htmlparser/tests/html/79492.html
new file mode 100644
index 00000000000..adde95f204c
--- /dev/null
+++ b/mozilla/htmlparser/tests/html/79492.html
@@ -0,0 +1,8 @@
+
+PG&E &E: &e. &e; &&e &&e;
+
+
+
\ No newline at end of file
diff --git a/mozilla/parser/htmlparser/tests/html/142965.html b/mozilla/parser/htmlparser/tests/html/142965.html
new file mode 100644
index 00000000000..d29b56c4812
--- /dev/null
+++ b/mozilla/parser/htmlparser/tests/html/142965.html
@@ -0,0 +1,8 @@
+
+
+
Please Enter your Homesite Login, E-mail and Password to delete
+
+
+
diff --git a/mozilla/parser/htmlparser/tests/html/18308.html b/mozilla/parser/htmlparser/tests/html/18308.html
new file mode 100644
index 00000000000..535c1d60a65
--- /dev/null
+++ b/mozilla/parser/htmlparser/tests/html/18308.html
@@ -0,0 +1,14 @@
+parserspace.html
+
+
+The head and body tags appear side by side in this test: </HEAD><BODY> so you should not see an [object Text] between the ending head and beginning body tags.
+
+undefined undefined undefined
+
\ No newline at end of file
diff --git a/mozilla/parser/htmlparser/tests/html/20087.html b/mozilla/parser/htmlparser/tests/html/20087.html
new file mode 100644
index 00000000000..31b748a25e5
--- /dev/null
+++ b/mozilla/parser/htmlparser/tests/html/20087.html
@@ -0,0 +1,17 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mozilla/parser/htmlparser/tests/html/22263.html b/mozilla/parser/htmlparser/tests/html/22263.html
new file mode 100644
index 00000000000..733d22b0f14
--- /dev/null
+++ b/mozilla/parser/htmlparser/tests/html/22263.html
@@ -0,0 +1,8 @@
+
+
+
A
+
B
+
C
+
+
+
\ No newline at end of file
diff --git a/mozilla/parser/htmlparser/tests/html/30487.html b/mozilla/parser/htmlparser/tests/html/30487.html
new file mode 100644
index 00000000000..acffe93fc67
--- /dev/null
+++ b/mozilla/parser/htmlparser/tests/html/30487.html
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+This text, in the body, is in "Font Face A"
+
+
+
+
+
+ This text, in a table, is in "Font Face B". Immediately following
+this text is a close font tag, and another erroneously placed close font
+tag.
+
+
+
+
This text, back in the body, should be in Font Face A,
+but is not because Mozilla incorrectly heeded the second close-font tag in
+the above table.
+
+
\ No newline at end of file
diff --git a/mozilla/parser/htmlparser/tests/html/32782.html b/mozilla/parser/htmlparser/tests/html/32782.html
new file mode 100644
index 00000000000..4a0f94b4aa1
--- /dev/null
+++ b/mozilla/parser/htmlparser/tests/html/32782.html
@@ -0,0 +1,8 @@
+
+
+
+
+
+
***
***
+
+
\ No newline at end of file
diff --git a/mozilla/parser/htmlparser/tests/html/40855.html b/mozilla/parser/htmlparser/tests/html/40855.html
new file mode 100644
index 00000000000..e6fc8197a84
--- /dev/null
+++ b/mozilla/parser/htmlparser/tests/html/40855.html
@@ -0,0 +1,10 @@
+
+
+
+
+This should be on all one line... but it isn't
+
+
+
+
+
\ No newline at end of file
diff --git a/mozilla/parser/htmlparser/tests/html/44479.html b/mozilla/parser/htmlparser/tests/html/44479.html
new file mode 100644
index 00000000000..7b2a1e1ee67
--- /dev/null
+++ b/mozilla/parser/htmlparser/tests/html/44479.html
@@ -0,0 +1,27 @@
+BUTTON in SPAN in SPAN / SPAN in BUTTON in SPAN
+
+
+
+
BUTTON in SPAN in SPAN
+
+
+
+
+
+
Text after button
+
+
+
+
SPAN in BUTTON in SPAN
+
+
+
+
Text after button
+
+
\ No newline at end of file
diff --git a/mozilla/parser/htmlparser/tests/html/48351.html b/mozilla/parser/htmlparser/tests/html/48351.html
new file mode 100644
index 00000000000..4b52c6cefe1
--- /dev/null
+++ b/mozilla/parser/htmlparser/tests/html/48351.html
@@ -0,0 +1,13 @@
+Mozilla Tests: An XHTML Document
+
+
+
+
+
An XHTML Document
+
This document is being parsed as XHTML.
+
This should not be emphasised text.
+
This should be a second paragraph.
+
\ No newline at end of file
diff --git a/mozilla/parser/htmlparser/tests/html/51161.html b/mozilla/parser/htmlparser/tests/html/51161.html
new file mode 100644
index 00000000000..cd3c4d13270
--- /dev/null
+++ b/mozilla/parser/htmlparser/tests/html/51161.html
@@ -0,0 +1,7 @@
+
+
+
+
text text text text
+
\ No newline at end of file
diff --git a/mozilla/parser/htmlparser/tests/html/54651.html b/mozilla/parser/htmlparser/tests/html/54651.html
new file mode 100644
index 00000000000..644fb5778d2
--- /dev/null
+++ b/mozilla/parser/htmlparser/tests/html/54651.html
@@ -0,0 +1,37 @@
+Child Selectors Test
+
+
+
+
+
+
Below this box, every box should be within another. In other
+ words, the only SIBLINGS in this document should be this box and the
+ immediate next one. In particular, LI should allow the inner DIV to
+ nest within it.
+
+
+ DIV
+
+
+ LI
+
+ DIV
+
+ P
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/mozilla/parser/htmlparser/tests/html/77746.html b/mozilla/parser/htmlparser/tests/html/77746.html
new file mode 100644
index 00000000000..a042fa144c1
--- /dev/null
+++ b/mozilla/parser/htmlparser/tests/html/77746.html
@@ -0,0 +1,3 @@
+
+
bold red
neither bold nor red
+
\ No newline at end of file
diff --git a/mozilla/parser/htmlparser/tests/html/79492.html b/mozilla/parser/htmlparser/tests/html/79492.html
new file mode 100644
index 00000000000..adde95f204c
--- /dev/null
+++ b/mozilla/parser/htmlparser/tests/html/79492.html
@@ -0,0 +1,8 @@
+
+PG&E &E: &e. &e; &&e &&e;
+
+
+