1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/parser/htmlparser/tests/mochitest/html5lib_tree_construction/entities01.dat Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,723 @@ 1.4 +#data 1.5 +FOO>BAR 1.6 +#errors 1.7 +(1,3): expected-doctype-but-got-chars 1.8 +#document 1.9 +| <html> 1.10 +| <head> 1.11 +| <body> 1.12 +| "FOO>BAR" 1.13 + 1.14 +#data 1.15 +FOO>BAR 1.16 +#errors 1.17 +(1,3): expected-doctype-but-got-chars 1.18 +(1,6): named-entity-without-semicolon 1.19 +#document 1.20 +| <html> 1.21 +| <head> 1.22 +| <body> 1.23 +| "FOO>BAR" 1.24 + 1.25 +#data 1.26 +FOO> BAR 1.27 +#errors 1.28 +(1,3): expected-doctype-but-got-chars 1.29 +(1,6): named-entity-without-semicolon 1.30 +#document 1.31 +| <html> 1.32 +| <head> 1.33 +| <body> 1.34 +| "FOO> BAR" 1.35 + 1.36 +#data 1.37 +FOO>;;BAR 1.38 +#errors 1.39 +(1,3): expected-doctype-but-got-chars 1.40 +#document 1.41 +| <html> 1.42 +| <head> 1.43 +| <body> 1.44 +| "FOO>;;BAR" 1.45 + 1.46 +#data 1.47 +I'm ¬it; I tell you 1.48 +#errors 1.49 +(1,4): expected-doctype-but-got-chars 1.50 +(1,9): named-entity-without-semicolon 1.51 +#document 1.52 +| <html> 1.53 +| <head> 1.54 +| <body> 1.55 +| "I'm ¬it; I tell you" 1.56 + 1.57 +#data 1.58 +I'm ∉ I tell you 1.59 +#errors 1.60 +(1,4): expected-doctype-but-got-chars 1.61 +#document 1.62 +| <html> 1.63 +| <head> 1.64 +| <body> 1.65 +| "I'm ∉ I tell you" 1.66 + 1.67 +#data 1.68 +FOO& BAR 1.69 +#errors 1.70 +(1,3): expected-doctype-but-got-chars 1.71 +#document 1.72 +| <html> 1.73 +| <head> 1.74 +| <body> 1.75 +| "FOO& BAR" 1.76 + 1.77 +#data 1.78 +FOO&<BAR> 1.79 +#errors 1.80 +(1,3): expected-doctype-but-got-chars 1.81 +(1,9): expected-closing-tag-but-got-eof 1.82 +#document 1.83 +| <html> 1.84 +| <head> 1.85 +| <body> 1.86 +| "FOO&" 1.87 +| <bar> 1.88 + 1.89 +#data 1.90 +FOO&&&>BAR 1.91 +#errors 1.92 +(1,3): expected-doctype-but-got-chars 1.93 +#document 1.94 +| <html> 1.95 +| <head> 1.96 +| <body> 1.97 +| "FOO&&&>BAR" 1.98 + 1.99 +#data 1.100 +FOO)BAR 1.101 +#errors 1.102 +(1,3): expected-doctype-but-got-chars 1.103 +#document 1.104 +| <html> 1.105 +| <head> 1.106 +| <body> 1.107 +| "FOO)BAR" 1.108 + 1.109 +#data 1.110 +FOOABAR 1.111 +#errors 1.112 +(1,3): expected-doctype-but-got-chars 1.113 +#document 1.114 +| <html> 1.115 +| <head> 1.116 +| <body> 1.117 +| "FOOABAR" 1.118 + 1.119 +#data 1.120 +FOOABAR 1.121 +#errors 1.122 +(1,3): expected-doctype-but-got-chars 1.123 +#document 1.124 +| <html> 1.125 +| <head> 1.126 +| <body> 1.127 +| "FOOABAR" 1.128 + 1.129 +#data 1.130 +FOO&#BAR 1.131 +#errors 1.132 +(1,3): expected-doctype-but-got-chars 1.133 +(1,5): expected-numeric-entity 1.134 +#document 1.135 +| <html> 1.136 +| <head> 1.137 +| <body> 1.138 +| "FOO&#BAR" 1.139 + 1.140 +#data 1.141 +FOO&#ZOO 1.142 +#errors 1.143 +(1,3): expected-doctype-but-got-chars 1.144 +(1,5): expected-numeric-entity 1.145 +#document 1.146 +| <html> 1.147 +| <head> 1.148 +| <body> 1.149 +| "FOO&#ZOO" 1.150 + 1.151 +#data 1.152 +FOOºR 1.153 +#errors 1.154 +(1,3): expected-doctype-but-got-chars 1.155 +(1,7): expected-numeric-entity 1.156 +#document 1.157 +| <html> 1.158 +| <head> 1.159 +| <body> 1.160 +| "FOOºR" 1.161 + 1.162 +#data 1.163 +FOO&#xZOO 1.164 +#errors 1.165 +(1,3): expected-doctype-but-got-chars 1.166 +(1,6): expected-numeric-entity 1.167 +#document 1.168 +| <html> 1.169 +| <head> 1.170 +| <body> 1.171 +| "FOO&#xZOO" 1.172 + 1.173 +#data 1.174 +FOO&#XZOO 1.175 +#errors 1.176 +(1,3): expected-doctype-but-got-chars 1.177 +(1,6): expected-numeric-entity 1.178 +#document 1.179 +| <html> 1.180 +| <head> 1.181 +| <body> 1.182 +| "FOO&#XZOO" 1.183 + 1.184 +#data 1.185 +FOO)BAR 1.186 +#errors 1.187 +(1,3): expected-doctype-but-got-chars 1.188 +(1,7): numeric-entity-without-semicolon 1.189 +#document 1.190 +| <html> 1.191 +| <head> 1.192 +| <body> 1.193 +| "FOO)BAR" 1.194 + 1.195 +#data 1.196 +FOO䆺R 1.197 +#errors 1.198 +(1,3): expected-doctype-but-got-chars 1.199 +(1,10): numeric-entity-without-semicolon 1.200 +#document 1.201 +| <html> 1.202 +| <head> 1.203 +| <body> 1.204 +| "FOO䆺R" 1.205 + 1.206 +#data 1.207 +FOOAZOO 1.208 +#errors 1.209 +(1,3): expected-doctype-but-got-chars 1.210 +(1,8): numeric-entity-without-semicolon 1.211 +#document 1.212 +| <html> 1.213 +| <head> 1.214 +| <body> 1.215 +| "FOOAZOO" 1.216 + 1.217 +#data 1.218 +FOO�ZOO 1.219 +#errors 1.220 +(1,3): expected-doctype-but-got-chars 1.221 +(1,11): illegal-codepoint-for-numeric-entity 1.222 +#document 1.223 +| <html> 1.224 +| <head> 1.225 +| <body> 1.226 +| "FOO�ZOO" 1.227 + 1.228 +#data 1.229 +FOOxZOO 1.230 +#errors 1.231 +(1,3): expected-doctype-but-got-chars 1.232 +#document 1.233 +| <html> 1.234 +| <head> 1.235 +| <body> 1.236 +| "FOOxZOO" 1.237 + 1.238 +#data 1.239 +FOOyZOO 1.240 +#errors 1.241 +(1,3): expected-doctype-but-got-chars 1.242 +#document 1.243 +| <html> 1.244 +| <head> 1.245 +| <body> 1.246 +| "FOOyZOO" 1.247 + 1.248 +#data 1.249 +FOO€ZOO 1.250 +#errors 1.251 +(1,3): expected-doctype-but-got-chars 1.252 +(1,11): illegal-codepoint-for-numeric-entity 1.253 +#document 1.254 +| <html> 1.255 +| <head> 1.256 +| <body> 1.257 +| "FOO€ZOO" 1.258 + 1.259 +#data 1.260 +FOOZOO 1.261 +#errors 1.262 +(1,3): expected-doctype-but-got-chars 1.263 +(1,11): illegal-codepoint-for-numeric-entity 1.264 +#document 1.265 +| <html> 1.266 +| <head> 1.267 +| <body> 1.268 +| "FOOZOO" 1.269 + 1.270 +#data 1.271 +FOO‚ZOO 1.272 +#errors 1.273 +(1,3): expected-doctype-but-got-chars 1.274 +(1,11): illegal-codepoint-for-numeric-entity 1.275 +#document 1.276 +| <html> 1.277 +| <head> 1.278 +| <body> 1.279 +| "FOO‚ZOO" 1.280 + 1.281 +#data 1.282 +FOOƒZOO 1.283 +#errors 1.284 +(1,3): expected-doctype-but-got-chars 1.285 +(1,11): illegal-codepoint-for-numeric-entity 1.286 +#document 1.287 +| <html> 1.288 +| <head> 1.289 +| <body> 1.290 +| "FOOƒZOO" 1.291 + 1.292 +#data 1.293 +FOO„ZOO 1.294 +#errors 1.295 +(1,3): expected-doctype-but-got-chars 1.296 +(1,11): illegal-codepoint-for-numeric-entity 1.297 +#document 1.298 +| <html> 1.299 +| <head> 1.300 +| <body> 1.301 +| "FOO„ZOO" 1.302 + 1.303 +#data 1.304 +FOO…ZOO 1.305 +#errors 1.306 +(1,3): expected-doctype-but-got-chars 1.307 +(1,11): illegal-codepoint-for-numeric-entity 1.308 +#document 1.309 +| <html> 1.310 +| <head> 1.311 +| <body> 1.312 +| "FOO…ZOO" 1.313 + 1.314 +#data 1.315 +FOO†ZOO 1.316 +#errors 1.317 +(1,3): expected-doctype-but-got-chars 1.318 +(1,11): illegal-codepoint-for-numeric-entity 1.319 +#document 1.320 +| <html> 1.321 +| <head> 1.322 +| <body> 1.323 +| "FOO†ZOO" 1.324 + 1.325 +#data 1.326 +FOO‡ZOO 1.327 +#errors 1.328 +(1,3): expected-doctype-but-got-chars 1.329 +(1,11): illegal-codepoint-for-numeric-entity 1.330 +#document 1.331 +| <html> 1.332 +| <head> 1.333 +| <body> 1.334 +| "FOO‡ZOO" 1.335 + 1.336 +#data 1.337 +FOOˆZOO 1.338 +#errors 1.339 +(1,3): expected-doctype-but-got-chars 1.340 +(1,11): illegal-codepoint-for-numeric-entity 1.341 +#document 1.342 +| <html> 1.343 +| <head> 1.344 +| <body> 1.345 +| "FOOˆZOO" 1.346 + 1.347 +#data 1.348 +FOO‰ZOO 1.349 +#errors 1.350 +(1,3): expected-doctype-but-got-chars 1.351 +(1,11): illegal-codepoint-for-numeric-entity 1.352 +#document 1.353 +| <html> 1.354 +| <head> 1.355 +| <body> 1.356 +| "FOO‰ZOO" 1.357 + 1.358 +#data 1.359 +FOOŠZOO 1.360 +#errors 1.361 +(1,3): expected-doctype-but-got-chars 1.362 +(1,11): illegal-codepoint-for-numeric-entity 1.363 +#document 1.364 +| <html> 1.365 +| <head> 1.366 +| <body> 1.367 +| "FOOŠZOO" 1.368 + 1.369 +#data 1.370 +FOO‹ZOO 1.371 +#errors 1.372 +(1,3): expected-doctype-but-got-chars 1.373 +(1,11): illegal-codepoint-for-numeric-entity 1.374 +#document 1.375 +| <html> 1.376 +| <head> 1.377 +| <body> 1.378 +| "FOO‹ZOO" 1.379 + 1.380 +#data 1.381 +FOOŒZOO 1.382 +#errors 1.383 +(1,3): expected-doctype-but-got-chars 1.384 +(1,11): illegal-codepoint-for-numeric-entity 1.385 +#document 1.386 +| <html> 1.387 +| <head> 1.388 +| <body> 1.389 +| "FOOŒZOO" 1.390 + 1.391 +#data 1.392 +FOOZOO 1.393 +#errors 1.394 +(1,3): expected-doctype-but-got-chars 1.395 +(1,11): illegal-codepoint-for-numeric-entity 1.396 +#document 1.397 +| <html> 1.398 +| <head> 1.399 +| <body> 1.400 +| "FOOZOO" 1.401 + 1.402 +#data 1.403 +FOOŽZOO 1.404 +#errors 1.405 +(1,3): expected-doctype-but-got-chars 1.406 +(1,11): illegal-codepoint-for-numeric-entity 1.407 +#document 1.408 +| <html> 1.409 +| <head> 1.410 +| <body> 1.411 +| "FOOŽZOO" 1.412 + 1.413 +#data 1.414 +FOOZOO 1.415 +#errors 1.416 +(1,3): expected-doctype-but-got-chars 1.417 +(1,11): illegal-codepoint-for-numeric-entity 1.418 +#document 1.419 +| <html> 1.420 +| <head> 1.421 +| <body> 1.422 +| "FOOZOO" 1.423 + 1.424 +#data 1.425 +FOOZOO 1.426 +#errors 1.427 +(1,3): expected-doctype-but-got-chars 1.428 +(1,11): illegal-codepoint-for-numeric-entity 1.429 +#document 1.430 +| <html> 1.431 +| <head> 1.432 +| <body> 1.433 +| "FOOZOO" 1.434 + 1.435 +#data 1.436 +FOO‘ZOO 1.437 +#errors 1.438 +(1,3): expected-doctype-but-got-chars 1.439 +(1,11): illegal-codepoint-for-numeric-entity 1.440 +#document 1.441 +| <html> 1.442 +| <head> 1.443 +| <body> 1.444 +| "FOO‘ZOO" 1.445 + 1.446 +#data 1.447 +FOO’ZOO 1.448 +#errors 1.449 +(1,3): expected-doctype-but-got-chars 1.450 +(1,11): illegal-codepoint-for-numeric-entity 1.451 +#document 1.452 +| <html> 1.453 +| <head> 1.454 +| <body> 1.455 +| "FOO’ZOO" 1.456 + 1.457 +#data 1.458 +FOO“ZOO 1.459 +#errors 1.460 +(1,3): expected-doctype-but-got-chars 1.461 +(1,11): illegal-codepoint-for-numeric-entity 1.462 +#document 1.463 +| <html> 1.464 +| <head> 1.465 +| <body> 1.466 +| "FOO“ZOO" 1.467 + 1.468 +#data 1.469 +FOO”ZOO 1.470 +#errors 1.471 +(1,3): expected-doctype-but-got-chars 1.472 +(1,11): illegal-codepoint-for-numeric-entity 1.473 +#document 1.474 +| <html> 1.475 +| <head> 1.476 +| <body> 1.477 +| "FOO”ZOO" 1.478 + 1.479 +#data 1.480 +FOO•ZOO 1.481 +#errors 1.482 +(1,3): expected-doctype-but-got-chars 1.483 +(1,11): illegal-codepoint-for-numeric-entity 1.484 +#document 1.485 +| <html> 1.486 +| <head> 1.487 +| <body> 1.488 +| "FOO•ZOO" 1.489 + 1.490 +#data 1.491 +FOO–ZOO 1.492 +#errors 1.493 +(1,3): expected-doctype-but-got-chars 1.494 +(1,11): illegal-codepoint-for-numeric-entity 1.495 +#document 1.496 +| <html> 1.497 +| <head> 1.498 +| <body> 1.499 +| "FOO–ZOO" 1.500 + 1.501 +#data 1.502 +FOO—ZOO 1.503 +#errors 1.504 +(1,3): expected-doctype-but-got-chars 1.505 +(1,11): illegal-codepoint-for-numeric-entity 1.506 +#document 1.507 +| <html> 1.508 +| <head> 1.509 +| <body> 1.510 +| "FOO—ZOO" 1.511 + 1.512 +#data 1.513 +FOO˜ZOO 1.514 +#errors 1.515 +(1,3): expected-doctype-but-got-chars 1.516 +(1,11): illegal-codepoint-for-numeric-entity 1.517 +#document 1.518 +| <html> 1.519 +| <head> 1.520 +| <body> 1.521 +| "FOO˜ZOO" 1.522 + 1.523 +#data 1.524 +FOO™ZOO 1.525 +#errors 1.526 +(1,3): expected-doctype-but-got-chars 1.527 +(1,11): illegal-codepoint-for-numeric-entity 1.528 +#document 1.529 +| <html> 1.530 +| <head> 1.531 +| <body> 1.532 +| "FOO™ZOO" 1.533 + 1.534 +#data 1.535 +FOOšZOO 1.536 +#errors 1.537 +(1,3): expected-doctype-but-got-chars 1.538 +(1,11): illegal-codepoint-for-numeric-entity 1.539 +#document 1.540 +| <html> 1.541 +| <head> 1.542 +| <body> 1.543 +| "FOOšZOO" 1.544 + 1.545 +#data 1.546 +FOO›ZOO 1.547 +#errors 1.548 +(1,3): expected-doctype-but-got-chars 1.549 +(1,11): illegal-codepoint-for-numeric-entity 1.550 +#document 1.551 +| <html> 1.552 +| <head> 1.553 +| <body> 1.554 +| "FOO›ZOO" 1.555 + 1.556 +#data 1.557 +FOOœZOO 1.558 +#errors 1.559 +(1,3): expected-doctype-but-got-chars 1.560 +(1,11): illegal-codepoint-for-numeric-entity 1.561 +#document 1.562 +| <html> 1.563 +| <head> 1.564 +| <body> 1.565 +| "FOOœZOO" 1.566 + 1.567 +#data 1.568 +FOOZOO 1.569 +#errors 1.570 +(1,3): expected-doctype-but-got-chars 1.571 +(1,11): illegal-codepoint-for-numeric-entity 1.572 +#document 1.573 +| <html> 1.574 +| <head> 1.575 +| <body> 1.576 +| "FOOZOO" 1.577 + 1.578 +#data 1.579 +FOOžZOO 1.580 +#errors 1.581 +(1,3): expected-doctype-but-got-chars 1.582 +(1,11): illegal-codepoint-for-numeric-entity 1.583 +#document 1.584 +| <html> 1.585 +| <head> 1.586 +| <body> 1.587 +| "FOOžZOO" 1.588 + 1.589 +#data 1.590 +FOOŸZOO 1.591 +#errors 1.592 +(1,3): expected-doctype-but-got-chars 1.593 +(1,11): illegal-codepoint-for-numeric-entity 1.594 +#document 1.595 +| <html> 1.596 +| <head> 1.597 +| <body> 1.598 +| "FOOŸZOO" 1.599 + 1.600 +#data 1.601 +FOO ZOO 1.602 +#errors 1.603 +(1,3): expected-doctype-but-got-chars 1.604 +#document 1.605 +| <html> 1.606 +| <head> 1.607 +| <body> 1.608 +| "FOO ZOO" 1.609 + 1.610 +#data 1.611 +FOO퟿ZOO 1.612 +#errors 1.613 +(1,3): expected-doctype-but-got-chars 1.614 +#document 1.615 +| <html> 1.616 +| <head> 1.617 +| <body> 1.618 +| "FOOZOO" 1.619 + 1.620 +#data 1.621 +FOO�ZOO 1.622 +#errors 1.623 +(1,3): expected-doctype-but-got-chars 1.624 +(1,11): illegal-codepoint-for-numeric-entity 1.625 +#document 1.626 +| <html> 1.627 +| <head> 1.628 +| <body> 1.629 +| "FOO�ZOO" 1.630 + 1.631 +#data 1.632 +FOO�ZOO 1.633 +#errors 1.634 +(1,3): expected-doctype-but-got-chars 1.635 +(1,11): illegal-codepoint-for-numeric-entity 1.636 +#document 1.637 +| <html> 1.638 +| <head> 1.639 +| <body> 1.640 +| "FOO�ZOO" 1.641 + 1.642 +#data 1.643 +FOO�ZOO 1.644 +#errors 1.645 +(1,3): expected-doctype-but-got-chars 1.646 +(1,11): illegal-codepoint-for-numeric-entity 1.647 +#document 1.648 +| <html> 1.649 +| <head> 1.650 +| <body> 1.651 +| "FOO�ZOO" 1.652 + 1.653 +#data 1.654 +FOO�ZOO 1.655 +#errors 1.656 +(1,3): expected-doctype-but-got-chars 1.657 +(1,11): illegal-codepoint-for-numeric-entity 1.658 +#document 1.659 +| <html> 1.660 +| <head> 1.661 +| <body> 1.662 +| "FOO�ZOO" 1.663 + 1.664 +#data 1.665 +FOOZOO 1.666 +#errors 1.667 +(1,3): expected-doctype-but-got-chars 1.668 +#document 1.669 +| <html> 1.670 +| <head> 1.671 +| <body> 1.672 +| "FOOZOO" 1.673 + 1.674 +#data 1.675 +FOOZOO 1.676 +#errors 1.677 +(1,3): expected-doctype-but-got-chars 1.678 +(1,13): illegal-codepoint-for-numeric-entity 1.679 +#document 1.680 +| <html> 1.681 +| <head> 1.682 +| <body> 1.683 +| "FOOZOO" 1.684 + 1.685 +#data 1.686 +FOO􈟔ZOO 1.687 +#errors 1.688 +(1,3): expected-doctype-but-got-chars 1.689 +#document 1.690 +| <html> 1.691 +| <head> 1.692 +| <body> 1.693 +| "FOOZOO" 1.694 + 1.695 +#data 1.696 +FOOZOO 1.697 +#errors 1.698 +(1,3): expected-doctype-but-got-chars 1.699 +(1,13): illegal-codepoint-for-numeric-entity 1.700 +#document 1.701 +| <html> 1.702 +| <head> 1.703 +| <body> 1.704 +| "FOOZOO" 1.705 + 1.706 +#data 1.707 +FOO�ZOO 1.708 +#errors 1.709 +(1,3): expected-doctype-but-got-chars 1.710 +(1,13): illegal-codepoint-for-numeric-entity 1.711 +#document 1.712 +| <html> 1.713 +| <head> 1.714 +| <body> 1.715 +| "FOO�ZOO" 1.716 + 1.717 +#data 1.718 +FOO�ZOO 1.719 +#errors 1.720 +(1,3): expected-doctype-but-got-chars 1.721 +(1,13): illegal-codepoint-for-numeric-entity 1.722 +#document 1.723 +| <html> 1.724 +| <head> 1.725 +| <body> 1.726 +| "FOO�ZOO"