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

781 lines
11 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
10: missing document type declaration.
17: unescaped '</' in CDATA or RCDATA block.
25: unexpected end of file while parsing CDATA section for element textarea.
#document
| <html>
| <head>
| <body>
| <textarea>
| "test</div>test"
#data
<table><td>
#errors
7: missing document type declaration.
11: required tr element start tag implied by unexpected td element start tag.
12: unexpected end of file implied table element end tag.
#document
| <html>
| <head>
| <body>
| <table>
| <tbody>
| <tr>
| <td>
#data
<table><td>test</tbody></table>
#errors
missing document type declarattion
Unexpected and of file
#document
| <html>
| <head>
| <body>
| <table>
| <tbody>
| <tr>
| <td>
| "test"
#data
<frame>test
#errors
missing document type declaration
frame element can't occur here
#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
frameset can't contain text
Unexpected end of file
#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
document type declaration can only occur at the start of a document
Expected end tag </frameset>
#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
#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
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <dt>
| <div>
| <dd>
#data
<script></x
#errors
no document type
</ in script
Unexpected end of file. Expected </script> end tag.
#document
| <html>
| <head>
| <script>
| "</x"
| <body>
#data
<table><plaintext><td>
#errors
no document type
<plaintext> directly inside table
Characters inside table.
Unexpected end of file.
#document
| <html>
| <head>
| <body>
| <plaintext>
| "<td>"
| <table>
#data
<plaintext></plaintext>
#errors
No DOCTYPE seen.
Unexpected end of file.
#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
TEST can't occur in <tr>
Unexpected end of file.
#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
Unexpected start tag "body"
Unexpected start tag "body"
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| t4="4"
| t2="2"
| t3="3"
| t1="1"
#data
</b test
#errors
Unexpected EOF in attribute
Unexpected attribute in end tag.
No doctype.
Unexpected end tag.
#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
Unexpected < in attribute
End tag contains attributes.
Unexpected end tag.
Named entity didn't end with ;
#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
No space after literal DOCTYPE.
Unexpected EOF in (end) tag name
#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
No doctype.
Unfinished entity.
#document
| <html>
| <head>
| <body>
| "&"
#data
&#
#errors
No doctype.
Unfinished numeric entity.
#document
| <html>
| <head>
| <body>
| "&#"
#data
&#X
#errors
No doctype.
Unfinished hexadecimal entity.
#document
| <html>
| <head>
| <body>
| "&#X"
#data
&#x
#errors
No doctype.
Unfinished hexadecimal entity.
#document
| <html>
| <head>
| <body>
| "&#x"
#data
&#45
#errors
No doctype.
Numeric entity didn't end with ;
#document
| <html>
| <head>
| <body>
| "-"
#data
&x-test
#errors
No doctype.
Unfinished named entity.
#document
| <html>
| <head>
| <body>
| "&x-test"
#data
<!doctypehtml><p><li>
#errors
No space after literal DOCTYPE.
#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
No space after literal DOCTYPE.
#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
No space after literal DOCTYPE.
#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
No space after literal DOCTYPE.
Unexpected EOF.
#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
Unexpected end tag </p>.
Unexpected end EOF. Missing closing tags.
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <p>
| <b>
| <i>
| <u>
| " "
| <p>
| <b>
| <i>
| <u>
| "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
No doctype.
No closing ; for the entity.
#document
| <html>
| <head>
| <body>
| "&"
#data
&AMp;
#errors
No doctype.
Invalid entity.
#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
Unexpected end of file.
#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
Unexpected non-space characters in the after body phase.
#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
Unexpected end of file in comment.
#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
Unexpected <td> in table body phase.
Unexpected end of file.
#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
Unexpected end of file. Missing closing tags.
#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
Unexpected start tag <select> in <select>.
Unexpected start tag <option>.
#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
Unexpected end of file. Missing closing tags.
#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
Unexpected EOF in comment.
#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
No doctype
<isindex> is not ok!
#document
| <html>
| <head>
| <body>
| <form>
| <hr>
| <p>
| <label>
| "This is a searchable index. Insert your search keywords here:"
| <input>
| test="x"
| name="isindex"
| <hr>
#data
test
test
#errors
No doctype
#document
| <html>
| <head>
| <body>
| "test
test"
#data
<p><b><i><u></p>
<p>X
#errors
No doctype
Unexpected end tag p.
Unexpected EOF.
#document
| <html>
| <head>
| <body>
| <p>
| <b>
| <i>
| <u>
| "
"
| <p>
| <b>
| <i>
| <u>
| "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
Unexpected start tag that belongs in the head.
Expected closing tag after </.
#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
Unexpected start tag that belongs in head.
Unexpected start tag that belongs in head.
Unexpected start tag that belongs in head.
Expected closing tag after </.
#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
No doctype.
#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
duplicate html start tag
#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
Unexpected html start tag in the after body phase.
html needs to be the first start tag.
#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
html start tag too late
#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
Unexpected non-space characters. Expected end of file.
Unexpected non-space characters in after body phase. Expected end of file.
#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
Unexpected start tag <p> in trailing end phase.
Unexpected start tag <p> in after body phase.
#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
Solidus (/) incorrectly placed.
Solidus (/) incorrectly placed.
Solidus (/) incorrectly placed.
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| "X"
| <p>
| y=""
| x=""
| z=""
#data
2007-06-22 10:12:08 +02:00
<!DOCTYPE HTML><!--x--
2007-06-12 06:33:06 +02:00
#errors
Unexpected end of file in comment.
#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
Unexpected </p> end tag.
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <table>
| <tbody>
| <tr>
| <td>
| <p>