summaryrefslogtreecommitdiff
path: root/test/data/tree-construction/tests7.dat
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/tree-construction/tests7.dat')
-rw-r--r--test/data/tree-construction/tests7.dat241
1 files changed, 108 insertions, 133 deletions
diff --git a/test/data/tree-construction/tests7.dat b/test/data/tree-construction/tests7.dat
index 0ae1db6..f9471b9 100644
--- a/test/data/tree-construction/tests7.dat
+++ b/test/data/tree-construction/tests7.dat
@@ -12,8 +12,7 @@
#data
<!doctype html><table><title>X</title></table>
#errors
-Line: 1 Col: 29 Unexpected start tag (title) in table context caused voodoo mode.
-Line: 1 Col: 38 Unexpected end tag (title) in table context caused voodoo mode.
+(1,29): unexpected-start-tag-implies-table-voodoo
#document
| <!DOCTYPE html>
| <html>
@@ -26,7 +25,7 @@ Line: 1 Col: 38 Unexpected end tag (title) in table context caused voodoo mode.
#data
<!doctype html><head></head><title>X</title>
#errors
-Line: 1 Col: 35 Unexpected start tag (title) that can be in head. Moved.
+(1,35): unexpected-start-tag-out-of-my-head
#document
| <!DOCTYPE html>
| <html>
@@ -38,7 +37,7 @@ Line: 1 Col: 35 Unexpected start tag (title) that can be in head. Moved.
#data
<!doctype html></head><title>X</title>
#errors
-Line: 1 Col: 29 Unexpected start tag (title) that can be in head. Moved.
+(1,29): unexpected-start-tag-out-of-my-head
#document
| <!DOCTYPE html>
| <html>
@@ -48,21 +47,9 @@ Line: 1 Col: 29 Unexpected start tag (title) that can be in head. Moved.
| <body>
#data
-<!doctype html></body><title>X</title>
-#errors
-Line: 1 Col: 22 Unexpected end tag (body) after the (implied) root element.
-#document
-| <!DOCTYPE html>
-| <html>
-| <head>
-| <body>
-| <title>
-| "X"
-
-#data
<!doctype html><table><meta></table>
#errors
-Line: 1 Col: 28 Unexpected start tag (meta) in table context caused voodoo mode.
+(1,28): unexpected-start-tag-implies-table-voodoo
#document
| <!DOCTYPE html>
| <html>
@@ -72,25 +59,9 @@ Line: 1 Col: 28 Unexpected start tag (meta) in table context caused voodoo mode.
| <table>
#data
-<!doctype html><table> X<meta></table>
-#errors
-Line: 1 Col: 24 Unexpected non-space characters in table context caused voodoo mode.
-Line: 1 Col: 30 Unexpected start tag (meta) in table context caused voodoo mode.
-#document
-| <!DOCTYPE html>
-| <html>
-| <head>
-| <body>
-| "X"
-| <meta>
-| <table>
-| " "
-
-#data
<!doctype html><table>X<tr><td><table> <meta></table></table>
#errors
-Line: 1 Col: 23 Unexpected non-space characters in table context caused voodoo mode.
-Line: 1 Col: 45 Unexpected start tag (meta) in table context caused voodoo mode.
+(1,45): unexpected-start-tag-implies-table-voodoo
#document
| <!DOCTYPE html>
| <html>
@@ -124,50 +95,8 @@ Line: 1 Col: 45 Unexpected start tag (meta) in table context caused voodoo mode.
| <body>
#data
-<!doctype html><table> x</table>
-#errors
-Line: 1 Col: 24 Unexpected non-space characters in table context caused voodoo mode.
-#document
-| <!DOCTYPE html>
-| <html>
-| <head>
-| <body>
-| "x"
-| <table>
-| " "
-
-#data
-<!doctype html><table> x </table>
-#errors
-Line: 1 Col: 25 Unexpected non-space characters in table context caused voodoo mode.
-#document
-| <!DOCTYPE html>
-| <html>
-| <head>
-| <body>
-| "x "
-| <table>
-| " "
-
-#data
-<!doctype html><table><tr> x</table>
-#errors
-Line: 1 Col: 28 Unexpected non-space characters in table context caused voodoo mode.
-#document
-| <!DOCTYPE html>
-| <html>
-| <head>
-| <body>
-| "x"
-| <table>
-| <tbody>
-| <tr>
-| " "
-
-#data
<!doctype html><table><style> <tr>x </style> </table>
#errors
-Line: 1 Col: 44 Unexpected end tag (style) in table context caused voodoo mode.
#document
| <!DOCTYPE html>
| <html>
@@ -181,7 +110,6 @@ Line: 1 Col: 44 Unexpected end tag (style) in table context caused voodoo mode.
#data
<!doctype html><table><TBODY><script> <tr>x </script> </table>
#errors
-Line: 1 Col: 53 Unexpected end tag (script) in table context caused voodoo mode.
#document
| <!DOCTYPE html>
| <html>
@@ -194,23 +122,6 @@ Line: 1 Col: 53 Unexpected end tag (script) in table context caused voodoo mode.
| " "
#data
-<!doctype html><table>X<style> <tr>x </style> </table>
-#errors
-Line: 1 Col: 23 Unexpected non-space characters in table context caused voodoo mode.
-Line: 1 Col: 30 Unexpected start tag (style) in table context caused voodoo mode.
-Line: 1 Col: 45 Unexpected end tag (style) in table context caused voodoo mode.
-#document
-| <!DOCTYPE html>
-| <html>
-| <head>
-| <body>
-| "X"
-| <style>
-| " <tr>x "
-| " "
-| <table>
-
-#data
<!doctype html><p><applet><p>X</p></applet>
#errors
#document
@@ -238,7 +149,7 @@ X</listing>
#data
<!doctype html><select><input>X
#errors
-Line: 1 Col: 30 Unexpected input start tag in the select phase.
+(1,30): unexpected-input-in-select
#document
| <!DOCTYPE html>
| <html>
@@ -251,7 +162,7 @@ Line: 1 Col: 30 Unexpected input start tag in the select phase.
#data
<!doctype html><select><select>X
#errors
-Line: 1 Col: 31 Unexpected select start tag in the select phase treated as select end tag.
+(1,31): unexpected-select-in-select
#document
| <!DOCTYPE html>
| <html>
@@ -263,7 +174,7 @@ Line: 1 Col: 31 Unexpected select start tag in the select phase treated as selec
#data
<!doctype html><table><input type=hidDEN></table>
#errors
-Line: 1 Col: 41 Unexpected input with type hidden in table context.
+(1,41): unexpected-hidden-input-in-table
#document
| <!DOCTYPE html>
| <html>
@@ -276,22 +187,22 @@ Line: 1 Col: 41 Unexpected input with type hidden in table context.
#data
<!doctype html><table>X<input type=hidDEN></table>
#errors
-Line: 1 Col: 23 Unexpected non-space characters in table context caused voodoo mode.
-Line: 1 Col: 42 Unexpected start tag (input) in table context caused voodoo mode.
+(1,23): foster-parenting-character
+(1,42): unexpected-hidden-input-in-table
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| "X"
-| <input>
-| type="hidDEN"
| <table>
+| <input>
+| type="hidDEN"
#data
<!doctype html><table> <input type=hidDEN></table>
#errors
-Line: 1 Col: 43 Unexpected input with type hidden in table context.
+(1,43): unexpected-hidden-input-in-table
#document
| <!DOCTYPE html>
| <html>
@@ -305,7 +216,7 @@ Line: 1 Col: 43 Unexpected input with type hidden in table context.
#data
<!doctype html><table> <input type='hidDEN'></table>
#errors
-Line: 1 Col: 45 Unexpected input with type hidden in table context.
+(1,45): unexpected-hidden-input-in-table
#document
| <!DOCTYPE html>
| <html>
@@ -319,8 +230,8 @@ Line: 1 Col: 45 Unexpected input with type hidden in table context.
#data
<!doctype html><table><input type=" hidden"><input type=hidDEN></table>
#errors
-Line: 1 Col: 44 Unexpected start tag (input) in table context caused voodoo mode.
-Line: 1 Col: 63 Unexpected start tag (input) in table context caused voodoo mode.
+(1,44): unexpected-start-tag-implies-table-voodoo
+(1,63): unexpected-hidden-input-in-table
#document
| <!DOCTYPE html>
| <html>
@@ -328,16 +239,16 @@ Line: 1 Col: 63 Unexpected start tag (input) in table context caused voodoo mode
| <body>
| <input>
| type=" hidden"
-| <input>
-| type="hidDEN"
| <table>
+| <input>
+| type="hidDEN"
#data
<!doctype html><table><select>X<tr>
#errors
-Line: 1 Col: 30 Unexpected start tag (select) in table context caused voodoo mode.
-Line: 1 Col: 35 Unexpected table element start tag (trs) in the select in table phase.
-Line: 1 Col: 35 Unexpected end of file. Expected table content.
+(1,30): unexpected-start-tag-implies-table-voodoo
+(1,35): unexpected-table-element-start-tag-in-select-in-table
+(1,35): eof-in-table
#document
| <!DOCTYPE html>
| <html>
@@ -363,7 +274,6 @@ Line: 1 Col: 35 Unexpected end of file. Expected table content.
#data
<!DOCTYPE hTmL><html></html>
#errors
-Line: 1 Col: 28 Unexpected end tag (html) after the (implied) root element.
#document
| <!DOCTYPE html>
| <html>
@@ -373,7 +283,6 @@ Line: 1 Col: 28 Unexpected end tag (html) after the (implied) root element.
#data
<!DOCTYPE HTML><html></html>
#errors
-Line: 1 Col: 28 Unexpected end tag (html) after the (implied) root element.
#document
| <!DOCTYPE html>
| <html>
@@ -383,8 +292,7 @@ Line: 1 Col: 28 Unexpected end tag (html) after the (implied) root element.
#data
<body>X</body></body>
#errors
-Line: 1 Col: 21 Unexpected end tag token (body) in the after body phase.
-Line: 1 Col: 21 Unexpected EOF in inner html mode.
+(1,21): unexpected-end-tag-after-body
#document-fragment
html
#document
@@ -393,35 +301,102 @@ html
| "X"
#data
-<!doctype html><div><table><a>foo</a> <tr><td>bar</td> </tr></table></div>
+<div><p>a</x> b
#errors
-Line: 1 Col: 30 Unexpected start tag (a) in table context caused voodoo mode.
-Line: 1 Col: 37 Unexpected end tag (a) in table context caused voodoo mode.
+(1,5): expected-doctype-but-got-start-tag
+(1,13): unexpected-end-tag
+(1,15): expected-closing-tag-but-got-eof
#document
-| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <div>
-| <a>
-| "foo"
-| " "
-| <table>
-| <tbody>
-| <tr>
-| <td>
-| "bar"
+| <p>
+| "a b"
#data
-<div><p>a</x> b
+<table><tr><td><code></code> </table>
#errors
-Line: 1 Col: 5 Unexpected start tag (div). Expected DOCTYPE.
-Line: 1 Col: 13 Unexpected end tag (x). Ignored.
-Line: 1 Col: 15 Expected closing tag. Unexpected end of file.
+(1,7): expected-doctype-but-got-start-tag
#document
| <html>
| <head>
| <body>
-| <div>
-| <p>
-| "a b"
+| <table>
+| <tbody>
+| <tr>
+| <td>
+| <code>
+| " "
+
+#data
+<table><b><tr><td>aaa</td></tr>bbb</table>ccc
+#errors
+(1,7): expected-doctype-but-got-start-tag
+(1,10): foster-parenting-start-tag
+(1,32): foster-parenting-character
+(1,33): foster-parenting-character
+(1,34): foster-parenting-character
+(1,45): expected-closing-tag-but-got-eof
+#document
+| <html>
+| <head>
+| <body>
+| <b>
+| <b>
+| "bbb"
+| <table>
+| <tbody>
+| <tr>
+| <td>
+| "aaa"
+| <b>
+| "ccc"
+
+#data
+A<table><tr> B</tr> B</table>
+#errors
+(1,1): expected-doctype-but-got-chars
+(1,13): foster-parenting-character
+(1,14): foster-parenting-character
+(1,20): foster-parenting-character
+(1,21): foster-parenting-character
+#document
+| <html>
+| <head>
+| <body>
+| "A B B"
+| <table>
+| <tbody>
+| <tr>
+
+#data
+A<table><tr> B</tr> </em>C</table>
+#errors
+(1,1): expected-doctype-but-got-chars
+(1,13): foster-parenting-character
+(1,14): foster-parenting-character
+(1,20): foster-parenting-character
+(1,25): unexpected-end-tag
+(1,26): foster-parenting-character
+#document
+| <html>
+| <head>
+| <body>
+| "A BC"
+| <table>
+| <tbody>
+| <tr>
+| " "
+
+#data
+<select><keygen>
+#errors
+(1,8): expected-doctype-but-got-start-tag
+(1,16): unexpected-input-in-select
+#document
+| <html>
+| <head>
+| <body>
+| <select>
+| <keygen>