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 <title> content +#errors +#document-fragment +title +#document +| "direct <title> content" + +#data +<!-- inside </script> --> +#errors +#document-fragment +script +#document +| "<!-- inside </script> -->" 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" | <body> +#data +<!doctype html></head><base>X +#errors +(1,28): unexpected-start-tag-out-of-my-head +#document +| <!DOCTYPE html> +| <html> +| <head> +| <base> +| <body> +| "X" + +#data +<!doctype html></head><basefont>X +#errors +(1,32): unexpected-start-tag-out-of-my-head +#document +| <!DOCTYPE html> +| <html> +| <head> +| <basefont> +| <body> +| "X" + +#data +<!doctype html></head><bgsound>X +#errors +(1,31): unexpected-start-tag-out-of-my-head +#document +| <!DOCTYPE html> +| <html> +| <head> +| <bgsound> +| <body> +| "X" + #data <!doctype html><table><meta></table> #errors