1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/parser/htmlparser/tests/mochitest/html5lib_tree_construction/webkit01.dat Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,705 @@ 1.4 +#data 1.5 +Test 1.6 +#errors 1.7 +(1,4): expected-doctype-but-got-chars 1.8 +#document 1.9 +| <html> 1.10 +| <head> 1.11 +| <body> 1.12 +| "Test" 1.13 + 1.14 +#data 1.15 +<div></div> 1.16 +#errors 1.17 +(1,5): expected-doctype-but-got-start-tag 1.18 +#document 1.19 +| <html> 1.20 +| <head> 1.21 +| <body> 1.22 +| <div> 1.23 + 1.24 +#data 1.25 +<div>Test</div> 1.26 +#errors 1.27 +(1,5): expected-doctype-but-got-start-tag 1.28 +#document 1.29 +| <html> 1.30 +| <head> 1.31 +| <body> 1.32 +| <div> 1.33 +| "Test" 1.34 + 1.35 +#data 1.36 +<di 1.37 +#errors 1.38 +(1,3): eof-in-tag-name 1.39 +(1,3): expected-doctype-but-got-eof 1.40 +#document 1.41 +| <html> 1.42 +| <head> 1.43 +| <body> 1.44 + 1.45 +#data 1.46 +<div>Hello</div> 1.47 +<script> 1.48 +console.log("PASS"); 1.49 +</script> 1.50 +<div>Bye</div> 1.51 +#errors 1.52 +(1,5): expected-doctype-but-got-start-tag 1.53 +#document 1.54 +| <html> 1.55 +| <head> 1.56 +| <body> 1.57 +| <div> 1.58 +| "Hello" 1.59 +| " 1.60 +" 1.61 +| <script> 1.62 +| " 1.63 +console.log("PASS"); 1.64 +" 1.65 +| " 1.66 +" 1.67 +| <div> 1.68 +| "Bye" 1.69 + 1.70 +#data 1.71 +<div foo="bar">Hello</div> 1.72 +#errors 1.73 +(1,15): expected-doctype-but-got-start-tag 1.74 +#document 1.75 +| <html> 1.76 +| <head> 1.77 +| <body> 1.78 +| <div> 1.79 +| foo="bar" 1.80 +| "Hello" 1.81 + 1.82 +#data 1.83 +<div>Hello</div> 1.84 +<script> 1.85 +console.log("FOO<span>BAR</span>BAZ"); 1.86 +</script> 1.87 +<div>Bye</div> 1.88 +#errors 1.89 +(1,5): expected-doctype-but-got-start-tag 1.90 +#document 1.91 +| <html> 1.92 +| <head> 1.93 +| <body> 1.94 +| <div> 1.95 +| "Hello" 1.96 +| " 1.97 +" 1.98 +| <script> 1.99 +| " 1.100 +console.log("FOO<span>BAR</span>BAZ"); 1.101 +" 1.102 +| " 1.103 +" 1.104 +| <div> 1.105 +| "Bye" 1.106 + 1.107 +#data 1.108 +<foo bar="baz"></foo><potato quack="duck"></potato> 1.109 +#errors 1.110 +(1,15): expected-doctype-but-got-start-tag 1.111 +#document 1.112 +| <html> 1.113 +| <head> 1.114 +| <body> 1.115 +| <foo> 1.116 +| bar="baz" 1.117 +| <potato> 1.118 +| quack="duck" 1.119 + 1.120 +#data 1.121 +<foo bar="baz"><potato quack="duck"></potato></foo> 1.122 +#errors 1.123 +(1,15): expected-doctype-but-got-start-tag 1.124 +#document 1.125 +| <html> 1.126 +| <head> 1.127 +| <body> 1.128 +| <foo> 1.129 +| bar="baz" 1.130 +| <potato> 1.131 +| quack="duck" 1.132 + 1.133 +#data 1.134 +<foo></foo bar="baz"><potato></potato quack="duck"> 1.135 +#errors 1.136 +(1,5): expected-doctype-but-got-start-tag 1.137 +(1,21): attributes-in-end-tag 1.138 +(1,51): attributes-in-end-tag 1.139 +#document 1.140 +| <html> 1.141 +| <head> 1.142 +| <body> 1.143 +| <foo> 1.144 +| <potato> 1.145 + 1.146 +#data 1.147 +</ tttt> 1.148 +#errors 1.149 +(1,2): expected-closing-tag-but-got-char 1.150 +(1,8): expected-doctype-but-got-eof 1.151 +#document 1.152 +| <!-- tttt --> 1.153 +| <html> 1.154 +| <head> 1.155 +| <body> 1.156 + 1.157 +#data 1.158 +<div FOO ><img><img></div> 1.159 +#errors 1.160 +(1,10): expected-doctype-but-got-start-tag 1.161 +#document 1.162 +| <html> 1.163 +| <head> 1.164 +| <body> 1.165 +| <div> 1.166 +| foo="" 1.167 +| <img> 1.168 +| <img> 1.169 + 1.170 +#data 1.171 +<p>Test</p<p>Test2</p> 1.172 +#errors 1.173 +(1,3): expected-doctype-but-got-start-tag 1.174 +(1,13): unexpected-end-tag 1.175 +#document 1.176 +| <html> 1.177 +| <head> 1.178 +| <body> 1.179 +| <p> 1.180 +| "TestTest2" 1.181 + 1.182 +#data 1.183 +<rdar://problem/6869687> 1.184 +#errors 1.185 +(1,7): unexpected-character-after-solidus-in-tag 1.186 +(1,8): unexpected-character-after-solidus-in-tag 1.187 +(1,16): unexpected-character-after-solidus-in-tag 1.188 +(1,24): expected-doctype-but-got-start-tag 1.189 +(1,24): expected-closing-tag-but-got-eof 1.190 +#document 1.191 +| <html> 1.192 +| <head> 1.193 +| <body> 1.194 +| <rdar:> 1.195 +| 6869687="" 1.196 +| problem="" 1.197 + 1.198 +#data 1.199 +<A>test< /A> 1.200 +#errors 1.201 +(1,3): expected-doctype-but-got-start-tag 1.202 +(1,8): expected-tag-name 1.203 +(1,12): expected-closing-tag-but-got-eof 1.204 +#document 1.205 +| <html> 1.206 +| <head> 1.207 +| <body> 1.208 +| <a> 1.209 +| "test< /A>" 1.210 + 1.211 +#data 1.212 +< 1.213 +#errors 1.214 +(1,4): expected-doctype-but-got-chars 1.215 +#document 1.216 +| <html> 1.217 +| <head> 1.218 +| <body> 1.219 +| "<" 1.220 + 1.221 +#data 1.222 +<body foo='bar'><body foo='baz' yo='mama'> 1.223 +#errors 1.224 +(1,16): expected-doctype-but-got-start-tag 1.225 +(1,42): unexpected-start-tag 1.226 +#document 1.227 +| <html> 1.228 +| <head> 1.229 +| <body> 1.230 +| foo="bar" 1.231 +| yo="mama" 1.232 + 1.233 +#data 1.234 +<body></br foo="bar"></body> 1.235 +#errors 1.236 +(1,6): expected-doctype-but-got-start-tag 1.237 +(1,21): attributes-in-end-tag 1.238 +(1,21): unexpected-end-tag-treated-as 1.239 +#document 1.240 +| <html> 1.241 +| <head> 1.242 +| <body> 1.243 +| <br> 1.244 + 1.245 +#data 1.246 +<bdy><br foo="bar"></body> 1.247 +#errors 1.248 +(1,5): expected-doctype-but-got-start-tag 1.249 +(1,26): expected-one-end-tag-but-got-another 1.250 +#document 1.251 +| <html> 1.252 +| <head> 1.253 +| <body> 1.254 +| <bdy> 1.255 +| <br> 1.256 +| foo="bar" 1.257 + 1.258 +#data 1.259 +<body></body></br foo="bar"> 1.260 +#errors 1.261 +(1,6): expected-doctype-but-got-start-tag 1.262 +(1,28): attributes-in-end-tag 1.263 +(1,28): unexpected-end-tag-after-body 1.264 +(1,28): unexpected-end-tag-treated-as 1.265 +#document 1.266 +| <html> 1.267 +| <head> 1.268 +| <body> 1.269 +| <br> 1.270 + 1.271 +#data 1.272 +<bdy></body><br foo="bar"> 1.273 +#errors 1.274 +(1,5): expected-doctype-but-got-start-tag 1.275 +(1,12): expected-one-end-tag-but-got-another 1.276 +(1,26): unexpected-start-tag-after-body 1.277 +(1,26): expected-closing-tag-but-got-eof 1.278 +#document 1.279 +| <html> 1.280 +| <head> 1.281 +| <body> 1.282 +| <bdy> 1.283 +| <br> 1.284 +| foo="bar" 1.285 + 1.286 +#data 1.287 +<html><body></body></html><!-- Hi there --> 1.288 +#errors 1.289 +(1,6): expected-doctype-but-got-start-tag 1.290 +#document 1.291 +| <html> 1.292 +| <head> 1.293 +| <body> 1.294 +| <!-- Hi there --> 1.295 + 1.296 +#data 1.297 +<html><body></body></html>x<!-- Hi there --> 1.298 +#errors 1.299 +(1,6): expected-doctype-but-got-start-tag 1.300 +(1,27): expected-eof-but-got-char 1.301 +#document 1.302 +| <html> 1.303 +| <head> 1.304 +| <body> 1.305 +| "x" 1.306 +| <!-- Hi there --> 1.307 + 1.308 +#data 1.309 +<html><body></body></html>x<!-- Hi there --></html><!-- Again --> 1.310 +#errors 1.311 +(1,6): expected-doctype-but-got-start-tag 1.312 +(1,27): expected-eof-but-got-char 1.313 +#document 1.314 +| <html> 1.315 +| <head> 1.316 +| <body> 1.317 +| "x" 1.318 +| <!-- Hi there --> 1.319 +| <!-- Again --> 1.320 + 1.321 +#data 1.322 +<html><body></body></html>x<!-- Hi there --></body></html><!-- Again --> 1.323 +#errors 1.324 +(1,6): expected-doctype-but-got-start-tag 1.325 +(1,27): expected-eof-but-got-char 1.326 +#document 1.327 +| <html> 1.328 +| <head> 1.329 +| <body> 1.330 +| "x" 1.331 +| <!-- Hi there --> 1.332 +| <!-- Again --> 1.333 + 1.334 +#data 1.335 +<html><body><ruby><div><rp>xx</rp></div></ruby></body></html> 1.336 +#errors 1.337 +(1,6): expected-doctype-but-got-start-tag 1.338 +(1,27): XXX-undefined-error 1.339 +#document 1.340 +| <html> 1.341 +| <head> 1.342 +| <body> 1.343 +| <ruby> 1.344 +| <div> 1.345 +| <rp> 1.346 +| "xx" 1.347 + 1.348 +#data 1.349 +<html><body><ruby><div><rt>xx</rt></div></ruby></body></html> 1.350 +#errors 1.351 +(1,6): expected-doctype-but-got-start-tag 1.352 +(1,27): XXX-undefined-error 1.353 +#document 1.354 +| <html> 1.355 +| <head> 1.356 +| <body> 1.357 +| <ruby> 1.358 +| <div> 1.359 +| <rt> 1.360 +| "xx" 1.361 + 1.362 +#data 1.363 +<html><frameset><!--1--><noframes>A</noframes><!--2--></frameset><!--3--><noframes>B</noframes><!--4--></html><!--5--><noframes>C</noframes><!--6--> 1.364 +#errors 1.365 +(1,6): expected-doctype-but-got-start-tag 1.366 +#document 1.367 +| <html> 1.368 +| <head> 1.369 +| <frameset> 1.370 +| <!-- 1 --> 1.371 +| <noframes> 1.372 +| "A" 1.373 +| <!-- 2 --> 1.374 +| <!-- 3 --> 1.375 +| <noframes> 1.376 +| "B" 1.377 +| <!-- 4 --> 1.378 +| <noframes> 1.379 +| "C" 1.380 +| <!-- 5 --> 1.381 +| <!-- 6 --> 1.382 + 1.383 +#data 1.384 +<select><option>A<select><option>B<select><option>C<select><option>D<select><option>E<select><option>F<select><option>G<select> 1.385 +#errors 1.386 +(1,8): expected-doctype-but-got-start-tag 1.387 +(1,25): unexpected-select-in-select 1.388 +(1,59): unexpected-select-in-select 1.389 +(1,93): unexpected-select-in-select 1.390 +(1,127): unexpected-select-in-select 1.391 +(1,127): expected-closing-tag-but-got-eof 1.392 +#document 1.393 +| <html> 1.394 +| <head> 1.395 +| <body> 1.396 +| <select> 1.397 +| <option> 1.398 +| "A" 1.399 +| <option> 1.400 +| "B" 1.401 +| <select> 1.402 +| <option> 1.403 +| "C" 1.404 +| <option> 1.405 +| "D" 1.406 +| <select> 1.407 +| <option> 1.408 +| "E" 1.409 +| <option> 1.410 +| "F" 1.411 +| <select> 1.412 +| <option> 1.413 +| "G" 1.414 + 1.415 +#data 1.416 +<dd><dd><dt><dt><dd><li><li> 1.417 +#errors 1.418 +(1,4): expected-doctype-but-got-start-tag 1.419 +#document 1.420 +| <html> 1.421 +| <head> 1.422 +| <body> 1.423 +| <dd> 1.424 +| <dd> 1.425 +| <dt> 1.426 +| <dt> 1.427 +| <dd> 1.428 +| <li> 1.429 +| <li> 1.430 + 1.431 +#data 1.432 +<div><b></div><div><nobr>a<nobr> 1.433 +#errors 1.434 +(1,5): expected-doctype-but-got-start-tag 1.435 +(1,14): end-tag-too-early 1.436 +(1,32): unexpected-start-tag-implies-end-tag 1.437 +(1,32): expected-closing-tag-but-got-eof 1.438 +#document 1.439 +| <html> 1.440 +| <head> 1.441 +| <body> 1.442 +| <div> 1.443 +| <b> 1.444 +| <div> 1.445 +| <b> 1.446 +| <nobr> 1.447 +| "a" 1.448 +| <nobr> 1.449 + 1.450 +#data 1.451 +<head></head> 1.452 +<body></body> 1.453 +#errors 1.454 +(1,6): expected-doctype-but-got-start-tag 1.455 +#document 1.456 +| <html> 1.457 +| <head> 1.458 +| " 1.459 +" 1.460 +| <body> 1.461 + 1.462 +#data 1.463 +<head></head> <style></style>ddd 1.464 +#errors 1.465 +(1,6): expected-doctype-but-got-start-tag 1.466 +(1,21): unexpected-start-tag-out-of-my-head 1.467 +#document 1.468 +| <html> 1.469 +| <head> 1.470 +| <style> 1.471 +| " " 1.472 +| <body> 1.473 +| "ddd" 1.474 + 1.475 +#data 1.476 +<kbd><table></kbd><col><select><tr> 1.477 +#errors 1.478 +(1,5): expected-doctype-but-got-start-tag 1.479 +(1,18): unexpected-end-tag-implies-table-voodoo 1.480 +(1,18): unexpected-end-tag 1.481 +(1,31): unexpected-start-tag-implies-table-voodoo 1.482 +(1,35): unexpected-table-element-start-tag-in-select-in-table 1.483 +(1,35): eof-in-table 1.484 +#document 1.485 +| <html> 1.486 +| <head> 1.487 +| <body> 1.488 +| <kbd> 1.489 +| <select> 1.490 +| <table> 1.491 +| <colgroup> 1.492 +| <col> 1.493 +| <tbody> 1.494 +| <tr> 1.495 + 1.496 +#data 1.497 +<kbd><table></kbd><col><select><tr></table><div> 1.498 +#errors 1.499 +(1,5): expected-doctype-but-got-start-tag 1.500 +(1,18): unexpected-end-tag-implies-table-voodoo 1.501 +(1,18): unexpected-end-tag 1.502 +(1,31): unexpected-start-tag-implies-table-voodoo 1.503 +(1,35): unexpected-table-element-start-tag-in-select-in-table 1.504 +(1,48): expected-closing-tag-but-got-eof 1.505 +#document 1.506 +| <html> 1.507 +| <head> 1.508 +| <body> 1.509 +| <kbd> 1.510 +| <select> 1.511 +| <table> 1.512 +| <colgroup> 1.513 +| <col> 1.514 +| <tbody> 1.515 +| <tr> 1.516 +| <div> 1.517 + 1.518 +#data 1.519 +<a><li><style></style><title></title></a> 1.520 +#errors 1.521 +(1,3): expected-doctype-but-got-start-tag 1.522 +(1,41): adoption-agency-1.3 1.523 +#document 1.524 +| <html> 1.525 +| <head> 1.526 +| <body> 1.527 +| <a> 1.528 +| <li> 1.529 +| <a> 1.530 +| <style> 1.531 +| <title> 1.532 + 1.533 +#data 1.534 +<font></p><p><meta><title></title></font> 1.535 +#errors 1.536 +(1,6): expected-doctype-but-got-start-tag 1.537 +(1,10): unexpected-end-tag 1.538 +(1,41): adoption-agency-1.3 1.539 +#document 1.540 +| <html> 1.541 +| <head> 1.542 +| <body> 1.543 +| <font> 1.544 +| <p> 1.545 +| <p> 1.546 +| <font> 1.547 +| <meta> 1.548 +| <title> 1.549 + 1.550 +#data 1.551 +<a><center><title></title><a> 1.552 +#errors 1.553 +(1,3): expected-doctype-but-got-start-tag 1.554 +(1,29): unexpected-start-tag-implies-end-tag 1.555 +(1,29): adoption-agency-1.3 1.556 +(1,29): expected-closing-tag-but-got-eof 1.557 +#document 1.558 +| <html> 1.559 +| <head> 1.560 +| <body> 1.561 +| <a> 1.562 +| <center> 1.563 +| <a> 1.564 +| <title> 1.565 +| <a> 1.566 + 1.567 +#data 1.568 +<svg><title><div> 1.569 +#errors 1.570 +(1,5): expected-doctype-but-got-start-tag 1.571 +(1,17): expected-closing-tag-but-got-eof 1.572 +#document 1.573 +| <html> 1.574 +| <head> 1.575 +| <body> 1.576 +| <svg svg> 1.577 +| <svg title> 1.578 +| <div> 1.579 + 1.580 +#data 1.581 +<svg><title><rect><div> 1.582 +#errors 1.583 +(1,5): expected-doctype-but-got-start-tag 1.584 +(1,23): expected-closing-tag-but-got-eof 1.585 +#document 1.586 +| <html> 1.587 +| <head> 1.588 +| <body> 1.589 +| <svg svg> 1.590 +| <svg title> 1.591 +| <rect> 1.592 +| <div> 1.593 + 1.594 +#data 1.595 +<svg><title><svg><div> 1.596 +#errors 1.597 +(1,5): expected-doctype-but-got-start-tag 1.598 +(1,22): unexpected-html-element-in-foreign-content 1.599 +(1,22): expected-closing-tag-but-got-eof 1.600 +#document 1.601 +| <html> 1.602 +| <head> 1.603 +| <body> 1.604 +| <svg svg> 1.605 +| <svg title> 1.606 +| <svg svg> 1.607 +| <div> 1.608 + 1.609 +#data 1.610 +<img <="" FAIL> 1.611 +#errors 1.612 +(1,6): invalid-character-in-attribute-name 1.613 +(1,15): expected-doctype-but-got-start-tag 1.614 +#document 1.615 +| <html> 1.616 +| <head> 1.617 +| <body> 1.618 +| <img> 1.619 +| <="" 1.620 +| fail="" 1.621 + 1.622 +#data 1.623 +<ul><li><div id='foo'/>A</li><li>B<div>C</div></li></ul> 1.624 +#errors 1.625 +(1,4): expected-doctype-but-got-start-tag 1.626 +(1,23): non-void-element-with-trailing-solidus 1.627 +(1,29): end-tag-too-early 1.628 +#document 1.629 +| <html> 1.630 +| <head> 1.631 +| <body> 1.632 +| <ul> 1.633 +| <li> 1.634 +| <div> 1.635 +| id="foo" 1.636 +| "A" 1.637 +| <li> 1.638 +| "B" 1.639 +| <div> 1.640 +| "C" 1.641 + 1.642 +#data 1.643 +<svg><em><desc></em> 1.644 +#errors 1.645 +(1,5): expected-doctype-but-got-start-tag 1.646 +(1,9): unexpected-html-element-in-foreign-content 1.647 +(1,20): adoption-agency-1.3 1.648 +#document 1.649 +| <html> 1.650 +| <head> 1.651 +| <body> 1.652 +| <svg svg> 1.653 +| <em> 1.654 +| <desc> 1.655 + 1.656 +#data 1.657 +<svg><tfoot></mi><td> 1.658 +#errors 1.659 +(1,5): expected-doctype-but-got-start-tag 1.660 +(1,17): unexpected-end-tag 1.661 +(1,17): unexpected-end-tag 1.662 +(1,21): expected-closing-tag-but-got-eof 1.663 +#document 1.664 +| <html> 1.665 +| <head> 1.666 +| <body> 1.667 +| <svg svg> 1.668 +| <svg tfoot> 1.669 +| <svg td> 1.670 + 1.671 +#data 1.672 +<math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math> 1.673 +#errors 1.674 +(1,6): expected-doctype-but-got-start-tag 1.675 +#document 1.676 +| <html> 1.677 +| <head> 1.678 +| <body> 1.679 +| <math math> 1.680 +| <math mrow> 1.681 +| <math mrow> 1.682 +| <math mn> 1.683 +| "1" 1.684 +| <math mi> 1.685 +| "a" 1.686 + 1.687 +#data 1.688 +<!doctype html><input type="hidden"><frameset> 1.689 +#errors 1.690 +(1,46): unexpected-start-tag 1.691 +(1,46): eof-in-frameset 1.692 +#document 1.693 +| <!DOCTYPE html> 1.694 +| <html> 1.695 +| <head> 1.696 +| <frameset> 1.697 + 1.698 +#data 1.699 +<!doctype html><input type="button"><frameset> 1.700 +#errors 1.701 +(1,46): unexpected-start-tag 1.702 +#document 1.703 +| <!DOCTYPE html> 1.704 +| <html> 1.705 +| <head> 1.706 +| <body> 1.707 +| <input> 1.708 +| type="button"