diff options
Diffstat (limited to 'test/data/tree-construction/tests3.dat')
-rw-r--r-- | test/data/tree-construction/tests3.dat | 76 |
1 files changed, 56 insertions, 20 deletions
diff --git a/test/data/tree-construction/tests3.dat b/test/data/tree-construction/tests3.dat index a958293..423e2b3 100644 --- a/test/data/tree-construction/tests3.dat +++ b/test/data/tree-construction/tests3.dat @@ -1,8 +1,8 @@ #data <head></head><style></style> #errors -Line: 1 Col: 6 Unexpected start tag (head). Expected DOCTYPE. -Line: 1 Col: 20 Unexpected start tag (style) that can be in head. Moved. +(1,6): expected-doctype-but-got-start-tag +(1,20): unexpected-start-tag-out-of-my-head #document | <html> | <head> @@ -12,8 +12,8 @@ Line: 1 Col: 20 Unexpected start tag (style) that can be in head. Moved. #data <head></head><script></script> #errors -Line: 1 Col: 6 Unexpected start tag (head). Expected DOCTYPE. -Line: 1 Col: 21 Unexpected start tag (script) that can be in head. Moved. +(1,6): expected-doctype-but-got-start-tag +(1,21): unexpected-start-tag-out-of-my-head #document | <html> | <head> @@ -23,8 +23,9 @@ Line: 1 Col: 21 Unexpected start tag (script) that can be in head. Moved. #data <head></head><!-- --><style></style><!-- --><script></script> #errors -Line: 1 Col: 6 Unexpected start tag (head). Expected DOCTYPE. -Line: 1 Col: 28 Unexpected start tag (style) that can be in head. Moved. +(1,6): expected-doctype-but-got-start-tag +(1,28): unexpected-start-tag-out-of-my-head +(1,52): unexpected-start-tag-out-of-my-head #document | <html> | <head> @@ -37,7 +38,7 @@ Line: 1 Col: 28 Unexpected start tag (style) that can be in head. Moved. #data <head></head><!-- -->x<style></style><!-- --><script></script> #errors -Line: 1 Col: 6 Unexpected start tag (head). Expected DOCTYPE. +(1,6): expected-doctype-but-got-start-tag #document | <html> | <head> @@ -131,7 +132,7 @@ y" <!DOCTYPE html><html><head></head><body><pre>x<div> y</pre></body></html> #errors -Line: 2 Col: 7 End tag (pre) seen too early. Expected other end tag. +(2,7): end-tag-too-early #document | <!DOCTYPE html> | <html> @@ -144,9 +145,21 @@ Line: 2 Col: 7 End tag (pre) seen too early. Expected other end tag. y" #data +<!DOCTYPE html><pre>

A</pre> +#errors +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <pre> +| " +A" + +#data <!DOCTYPE html><HTML><META><HEAD></HEAD></HTML> #errors -Line: 1 Col: 33 Unexpected start tag head in existing head. Ignored. +(1,33): two-heads-are-not-better-than-one #document | <!DOCTYPE html> | <html> @@ -157,7 +170,7 @@ Line: 1 Col: 33 Unexpected start tag head in existing head. Ignored. #data <!DOCTYPE html><HTML><HEAD><head></HEAD></HTML> #errors -Line: 1 Col: 33 Unexpected start tag head in existing head. Ignored. +(1,33): two-heads-are-not-better-than-one #document | <!DOCTYPE html> | <html> @@ -167,8 +180,8 @@ Line: 1 Col: 33 Unexpected start tag head in existing head. Ignored. #data <textarea>foo<span>bar</span><i>baz #errors -Line: 1 Col: 10 Unexpected start tag (textarea). Expected DOCTYPE. -Line: 1 Col: 35 Expected closing tag. Unexpected end of file. +(1,10): expected-doctype-but-got-start-tag +(1,35): expected-closing-tag-but-got-eof #document | <html> | <head> @@ -179,8 +192,8 @@ Line: 1 Col: 35 Expected closing tag. Unexpected end of file. #data <title>foo<span>bar</em><i>baz #errors -Line: 1 Col: 7 Unexpected start tag (title). Expected DOCTYPE. -Line: 1 Col: 30 Unexpected end of file. Expected end tag (title). +(1,7): expected-doctype-but-got-start-tag +(1,30): expected-named-closing-tag-but-got-eof #document | <html> | <head> @@ -228,7 +241,7 @@ foo" #data <!DOCTYPE html><html><head></head><body><ul><li><div><p><li></ul></body></html> #errors -Line: 1 Col: 60 Missing end tag (div, li). +(1,60): end-tag-too-early #document | <!DOCTYPE html> | <html> @@ -243,9 +256,9 @@ Line: 1 Col: 60 Missing end tag (div, li). #data <!doctype html><nobr><nobr><nobr> #errors -Line: 1 Col: 27 Unexpected start tag (nobr) implies end tag (nobr). -Line: 1 Col: 33 Unexpected start tag (nobr) implies end tag (nobr). -Line: 1 Col: 33 Expected closing tag. Unexpected end of file. +(1,27): unexpected-start-tag-implies-end-tag +(1,33): unexpected-start-tag-implies-end-tag +(1,33): expected-closing-tag-but-got-eof #document | <!DOCTYPE html> | <html> @@ -258,8 +271,8 @@ Line: 1 Col: 33 Expected closing tag. Unexpected end of file. #data <!doctype html><nobr><nobr></nobr><nobr> #errors -Line: 1 Col: 27 Unexpected start tag (nobr) implies end tag (nobr). -Line: 1 Col: 40 Expected closing tag. Unexpected end of file. +(1,27): unexpected-start-tag-implies-end-tag +(1,40): expected-closing-tag-but-got-eof #document | <!DOCTYPE html> | <html> @@ -268,3 +281,26 @@ Line: 1 Col: 40 Expected closing tag. Unexpected end of file. | <nobr> | <nobr> | <nobr> + +#data +<!doctype html><html><body><p><table></table></body></html> +#errors +Not known +#document +| <!DOCTYPE html> +| <html> +| <head> +| <body> +| <p> +| <table> + +#data +<p><table></table> +#errors +(1,3): expected-doctype-but-got-start-tag +#document +| <html> +| <head> +| <body> +| <p> +| <table> |