instiki/vendor/plugins/HTML5lib/testdata/tree-construction/tests2.dat

774 lines
14 KiB
Plaintext
Raw Normal View History

2007-06-12 06:33:06 +02:00
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML>Test
2007-06-12 06:33:06 +02:00
#errors
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| "Test"
#data
<textarea>test</div>test
#errors
Line: 1 Col: 10 Unexpected start tag (textarea). Expected DOCTYPE.
Line: 1 Col: 24 Expected closing tag. Unexpected end of file.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| <textarea>
| "test</div>test"
#data
<table><td>
#errors
Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
Line: 1 Col: 11 Unexpected table cell start tag (td) in the table body phase.
Line: 1 Col: 11 Expected closing tag. Unexpected end of file.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| <table>
| <tbody>
| <tr>
| <td>
#data
<table><td>test</tbody></table>
#errors
Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
Line: 1 Col: 11 Unexpected table cell start tag (td) in the table body phase.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| <table>
| <tbody>
| <tr>
| <td>
| "test"
#data
<frame>test
#errors
Line: 1 Col: 7 Unexpected start tag (frame). Expected DOCTYPE.
Line: 1 Col: 7 Unexpected start tag frame. Ignored.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| "test"
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><frameset>test
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 29 Unepxected characters in the frameset phase. Characters ignored.
Line: 1 Col: 29 Expected closing tag. Unexpected end of file.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <frameset>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><frameset><!DOCTYPE HTML>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 40 Unexpected DOCTYPE. Ignored.
Line: 1 Col: 40 Expected closing tag. Unexpected end of file.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <frameset>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><font><p><b>test</font>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 38 End tag (font) violates step 1, paragraph 3 of the adoption agency algorithm.
Line: 1 Col: 38 End tag (font) violates step 1, paragraph 3 of the adoption agency algorithm.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <font>
| <p>
| <font>
| <b>
| "test"
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><dt><div><dd>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 28 Missing end tag (div, dt).
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <dt>
| <div>
| <dd>
#data
<script></x
#errors
Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
Line: 1 Col: 11 Unexpected end of file. Expected end tag (script).
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <script>
| "</x"
| <body>
#data
<table><plaintext><td>
#errors
Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
Line: 1 Col: 18 Unexpected start tag (plaintext) in table context caused voodoo mode.
Line: 1 Col: 21 Unexpected non-space characters in table context caused voodoo mode.
Line: 1 Col: 22 Unexpected non-space characters in table context caused voodoo mode.
Line: 1 Col: 22 Expected closing tag. Unexpected end of file.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| <plaintext>
| "<td>"
| <table>
#data
<plaintext></plaintext>
#errors
Line: 1 Col: 11 Unexpected start tag (plaintext). Expected DOCTYPE.
Line: 1 Col: 23 Expected closing tag. Unexpected end of file.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| <plaintext>
| "</plaintext>"
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><table><tr>TEST
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 30 Unexpected non-space characters in table context caused voodoo mode.
Line: 1 Col: 30 Expected closing tag. Unexpected end of file.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| "TEST"
| <table>
| <tbody>
| <tr>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><body t1=1><body t2=2><body t3=3 t4=4>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 37 Unexpected start tag (body).
Line: 1 Col: 53 Unexpected start tag (body).
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| t1="1"
2007-06-12 06:33:06 +02:00
| t2="2"
| t3="3"
| t4="4"
2007-06-12 06:33:06 +02:00
#data
</b test
#errors
Line: 1 Col: 8 Unexpected end of file in attribute name.
Line: 1 Col: 8 End tag contains unexpected attributes.
Line: 1 Col: 8 Unexpected end tag (b). Expected DOCTYPE.
Line: 1 Col: 8 Unexpected end tag (b) after the (implied) root element.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML></b test<b &=&amp>X
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 32 Named entity didn't end with ';'.
Line: 1 Col: 33 End tag contains unexpected attributes.
Line: 1 Col: 33 Unexpected end tag (b) after the (implied) root element.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
2007-06-22 10:12:08 +02:00
| "X"
2007-06-12 06:33:06 +02:00
#data
<!doctypehtml><scrIPt type=text/x-foobar;baz>X</SCRipt
#errors
Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
Line: 1 Col: 54 Unexpected end of file in the tag name.
2007-06-12 06:33:06 +02:00
#document
2007-06-22 10:12:08 +02:00
| <!DOCTYPE html>
2007-06-12 06:33:06 +02:00
| <html>
| <head>
| <script>
| type="text/x-foobar;baz"
| "X"
| <body>
#data
&
#errors
Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| "&"
#data
&#
#errors
Line: 1 Col: 1 Numeric entity expected. Got end of file instead.
Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| "&#"
#data
&#X
#errors
Line: 1 Col: 3 Numeric entity expected but none found.
Line: 1 Col: 3 Unexpected non-space characters. Expected DOCTYPE.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| "&#X"
#data
&#x
#errors
Line: 1 Col: 3 Numeric entity expected but none found.
Line: 1 Col: 3 Unexpected non-space characters. Expected DOCTYPE.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| "&#x"
#data
&#45
#errors
Line: 1 Col: 4 Numeric entity didn't end with ';'.
Line: 1 Col: 4 Unexpected non-space characters. Expected DOCTYPE.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| "-"
#data
&x-test
#errors
Line: 1 Col: 1 Named entity expected. Got none.
Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| "&x-test"
#data
<!doctypehtml><p><li>
#errors
Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
2007-06-12 06:33:06 +02:00
#document
2007-06-22 10:12:08 +02:00
| <!DOCTYPE html>
2007-06-12 06:33:06 +02:00
| <html>
| <head>
| <body>
| <p>
| <li>
#data
2007-06-22 10:12:08 +02:00
<!doctypeHTML><p><dt>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <p>
| <dt>
#data
2007-06-22 10:12:08 +02:00
<!doctypehtmL><p><dd>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
2007-06-12 06:33:06 +02:00
#document
2007-06-22 10:12:08 +02:00
| <!DOCTYPE htmL>
2007-06-12 06:33:06 +02:00
| <html>
| <head>
| <body>
| <p>
| <dd>
#data
<!doctypehtml><p><form>
#errors
Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
Line: 1 Col: 23 Expected closing tag. Unexpected end of file.
2007-06-12 06:33:06 +02:00
#document
2007-06-22 10:12:08 +02:00
| <!DOCTYPE html>
2007-06-12 06:33:06 +02:00
| <html>
| <head>
| <body>
| <p>
| <form>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><p><b><i><u></p> <p>X
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 31 Unexpected end tag (p). Ignored.
Line: 1 Col: 36 Expected closing tag. Unexpected end of file.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <p>
| <b>
| <i>
| <u>
| <b>
| <i>
| <u>
| " "
| <p>
2007-06-12 06:33:06 +02:00
| "X"
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><p></P>X
2007-06-12 06:33:06 +02:00
#errors
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <p>
| "X"
#data
&AMP
#errors
Line: 1 Col: 4 Named entity didn't end with ';'.
Line: 1 Col: 4 Unexpected non-space characters. Expected DOCTYPE.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| "&"
#data
&AMp;
#errors
Line: 1 Col: 1 Named entity expected. Got none.
Line: 1 Col: 1 Unexpected non-space characters. Expected DOCTYPE.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| "&AMp;"
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><html><head></head><body><thisISasillyTESTelementNameToMakeSureCrazyTagNamesArePARSEDcorrectLY>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 110 Expected closing tag. Unexpected end of file.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <thisisasillytestelementnametomakesurecrazytagnamesareparsedcorrectly>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML>X</body>X
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 24 Unexpected non-space characters in the after body phase.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| "XX"
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><!-- X
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 21 Unexpected end of file in comment.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <!-- X -->
| <html>
| <head>
| <body>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><table><caption>test TEST</caption><td>test
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 54 Unexpected table cell start tag (td) in the table body phase.
Line: 1 Col: 58 Expected closing tag. Unexpected end of file.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <table>
| <caption>
| "test TEST"
| <tbody>
| <tr>
| <td>
| "test"
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><select><option><optgroup>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 41 Expected closing tag. Unexpected end of file.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <select>
| <option>
| <optgroup>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><select><optgroup><option></optgroup><option><select><option>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 68 Unexpected select start tag in the select phase implies select start tag.
Line: 1 Col: 76 Unexpected start tag option. Ignored.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <select>
| <optgroup>
| <option>
| <option>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><select><optgroup><option><optgroup>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 51 Expected closing tag. Unexpected end of file.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <select>
| <optgroup>
| <option>
| <optgroup>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><font><input><input></font>
2007-06-12 06:33:06 +02:00
#errors
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <font>
| <input>
| <input>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><!-- XXX - XXX -->
2007-06-12 06:33:06 +02:00
#errors
#document
| <!DOCTYPE HTML>
| <!-- XXX - XXX -->
| <html>
| <head>
| <body>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><!-- XXX - XXX
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 29 Unexpected end of file in comment (-)
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <!-- XXX - XXX -->
| <html>
| <head>
| <body>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><!-- XXX - XXX - XXX -->
2007-06-12 06:33:06 +02:00
#errors
#document
| <!DOCTYPE HTML>
| <!-- XXX - XXX - XXX -->
| <html>
| <head>
| <body>
#data
<isindex test=x name=x>
#errors
Line: 1 Col: 23 Unexpected start tag (isindex). Expected DOCTYPE.
Line: 1 Col: 23 Unexpected start tag isindex. Don't use it!
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| <form>
| <hr>
| <p>
| <label>
| "This is a searchable index. Insert your search keywords here: "
2007-06-12 06:33:06 +02:00
| <input>
| name="isindex"
| test="x"
2007-06-12 06:33:06 +02:00
| <hr>
#data
test
test
#errors
Line: 2 Col: 4 Unexpected non-space characters. Expected DOCTYPE.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| "test
test"
#data
<p><b><i><u></p>
<p>X
#errors
Line: 1 Col: 3 Unexpected start tag (p). Expected DOCTYPE.
Line: 1 Col: 16 Unexpected end tag (p). Ignored.
Line: 2 Col: 4 Expected closing tag. Unexpected end of file.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
| <p>
| <b>
| <i>
| <u>
| <b>
| <i>
| <u>
| "
2007-06-12 06:33:06 +02:00
"
| <p>
2007-06-12 06:33:06 +02:00
| "X"
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><body><title>test</body></title>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 28 Unexpected start tag (title) that can be in head. Moved.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <title>
| "test</body>"
| <body>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><body><title>X</title><meta name=z><link rel=foo><style>
2007-06-12 06:33:06 +02:00
x { content:"</style" } </style>
#errors
Line: 1 Col: 28 Unexpected start tag (title) that can be in head. Moved.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <title>
| "X"
2007-06-22 10:12:08 +02:00
| <body>
2007-06-12 06:33:06 +02:00
| <meta>
| name="z"
| <link>
| rel="foo"
| <style>
| "
x { content:"</style" } "
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><select><optgroup></optgroup></select>
2007-06-12 06:33:06 +02:00
#errors
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <select>
| <optgroup>
#data
#errors
Line: 2 Col: 1 Unexpected End of file. Expected DOCTYPE.
2007-06-12 06:33:06 +02:00
#document
| <html>
| <head>
| <body>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML> <html>
2007-06-12 06:33:06 +02:00
#errors
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><script>
2007-06-12 06:33:06 +02:00
</script> <title>x</title> </head>
#errors
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <script>
| "
"
| " "
| <title>
| "x"
| " "
| <body>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><html><body><html id=x>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 38 html needs to be the first start tag.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| id="x"
| <head>
| <body>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML>X</body><html id="x">
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 36 Unexpected start tag token (html) in the after body phase.
Line: 1 Col: 36 html needs to be the first start tag.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| id="x"
| <head>
| <body>
| "X"
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><head><html id=x>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 32 html needs to be the first start tag.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| id="x"
| <head>
| <body>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML>X</html>X
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 24 Unexpected non-space characters. Expected end of file.
Line: 1 Col: 24 Unexpected non-space characters in the after body phase.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| "XX"
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML>X</html>
2007-06-12 06:33:06 +02:00
#errors
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| "X "
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML>X</html><p>X
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 26 Unexpected start tag (p). Expected end of file.
Line: 1 Col: 26 Unexpected start tag token (p) in the after body phase.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| "X"
| <p>
| "X"
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML>X<p/x/y/z>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 19 Solidus (/) incorrectly placed in tag.
Line: 1 Col: 21 Solidus (/) incorrectly placed in tag.
Line: 1 Col: 23 Solidus (/) incorrectly placed in tag.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| "X"
| <p>
| x=""
| y=""
2007-06-12 06:33:06 +02:00
| z=""
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><!--x--
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 22 Unexpected end of file in comment (--).
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <!-- x -->
| <html>
| <head>
| <body>
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><table><tr><td></p></table>
2007-06-12 06:33:06 +02:00
#errors
Line: 1 Col: 34 Unexpected end tag (p). Ignored.
2007-06-12 06:33:06 +02:00
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <table>
| <tbody>
| <tr>
| <td>
| <p>