1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/parser/htmlparser/tests/mochitest/html5lib_tree_construction/tests20.dat Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,516 @@ 1.4 +#data 1.5 +<!doctype html><p><button><button> 1.6 +#errors 1.7 +(1,34): unexpected-start-tag-implies-end-tag 1.8 +(1,34): expected-closing-tag-but-got-eof 1.9 +#document 1.10 +| <!DOCTYPE html> 1.11 +| <html> 1.12 +| <head> 1.13 +| <body> 1.14 +| <p> 1.15 +| <button> 1.16 +| <button> 1.17 + 1.18 +#data 1.19 +<!doctype html><p><button><address> 1.20 +#errors 1.21 +(1,35): expected-closing-tag-but-got-eof 1.22 +#document 1.23 +| <!DOCTYPE html> 1.24 +| <html> 1.25 +| <head> 1.26 +| <body> 1.27 +| <p> 1.28 +| <button> 1.29 +| <address> 1.30 + 1.31 +#data 1.32 +<!doctype html><p><button><blockquote> 1.33 +#errors 1.34 +(1,38): expected-closing-tag-but-got-eof 1.35 +#document 1.36 +| <!DOCTYPE html> 1.37 +| <html> 1.38 +| <head> 1.39 +| <body> 1.40 +| <p> 1.41 +| <button> 1.42 +| <blockquote> 1.43 + 1.44 +#data 1.45 +<!doctype html><p><button><menu> 1.46 +#errors 1.47 +(1,32): expected-closing-tag-but-got-eof 1.48 +#document 1.49 +| <!DOCTYPE html> 1.50 +| <html> 1.51 +| <head> 1.52 +| <body> 1.53 +| <p> 1.54 +| <button> 1.55 +| <menu> 1.56 + 1.57 +#data 1.58 +<!doctype html><p><button><p> 1.59 +#errors 1.60 +(1,29): expected-closing-tag-but-got-eof 1.61 +#document 1.62 +| <!DOCTYPE html> 1.63 +| <html> 1.64 +| <head> 1.65 +| <body> 1.66 +| <p> 1.67 +| <button> 1.68 +| <p> 1.69 + 1.70 +#data 1.71 +<!doctype html><p><button><ul> 1.72 +#errors 1.73 +(1,30): expected-closing-tag-but-got-eof 1.74 +#document 1.75 +| <!DOCTYPE html> 1.76 +| <html> 1.77 +| <head> 1.78 +| <body> 1.79 +| <p> 1.80 +| <button> 1.81 +| <ul> 1.82 + 1.83 +#data 1.84 +<!doctype html><p><button><h1> 1.85 +#errors 1.86 +(1,30): expected-closing-tag-but-got-eof 1.87 +#document 1.88 +| <!DOCTYPE html> 1.89 +| <html> 1.90 +| <head> 1.91 +| <body> 1.92 +| <p> 1.93 +| <button> 1.94 +| <h1> 1.95 + 1.96 +#data 1.97 +<!doctype html><p><button><h6> 1.98 +#errors 1.99 +(1,30): expected-closing-tag-but-got-eof 1.100 +#document 1.101 +| <!DOCTYPE html> 1.102 +| <html> 1.103 +| <head> 1.104 +| <body> 1.105 +| <p> 1.106 +| <button> 1.107 +| <h6> 1.108 + 1.109 +#data 1.110 +<!doctype html><p><button><listing> 1.111 +#errors 1.112 +(1,35): expected-closing-tag-but-got-eof 1.113 +#document 1.114 +| <!DOCTYPE html> 1.115 +| <html> 1.116 +| <head> 1.117 +| <body> 1.118 +| <p> 1.119 +| <button> 1.120 +| <listing> 1.121 + 1.122 +#data 1.123 +<!doctype html><p><button><pre> 1.124 +#errors 1.125 +(1,31): expected-closing-tag-but-got-eof 1.126 +#document 1.127 +| <!DOCTYPE html> 1.128 +| <html> 1.129 +| <head> 1.130 +| <body> 1.131 +| <p> 1.132 +| <button> 1.133 +| <pre> 1.134 + 1.135 +#data 1.136 +<!doctype html><p><button><form> 1.137 +#errors 1.138 +(1,32): expected-closing-tag-but-got-eof 1.139 +#document 1.140 +| <!DOCTYPE html> 1.141 +| <html> 1.142 +| <head> 1.143 +| <body> 1.144 +| <p> 1.145 +| <button> 1.146 +| <form> 1.147 + 1.148 +#data 1.149 +<!doctype html><p><button><li> 1.150 +#errors 1.151 +(1,30): expected-closing-tag-but-got-eof 1.152 +#document 1.153 +| <!DOCTYPE html> 1.154 +| <html> 1.155 +| <head> 1.156 +| <body> 1.157 +| <p> 1.158 +| <button> 1.159 +| <li> 1.160 + 1.161 +#data 1.162 +<!doctype html><p><button><dd> 1.163 +#errors 1.164 +(1,30): expected-closing-tag-but-got-eof 1.165 +#document 1.166 +| <!DOCTYPE html> 1.167 +| <html> 1.168 +| <head> 1.169 +| <body> 1.170 +| <p> 1.171 +| <button> 1.172 +| <dd> 1.173 + 1.174 +#data 1.175 +<!doctype html><p><button><dt> 1.176 +#errors 1.177 +(1,30): expected-closing-tag-but-got-eof 1.178 +#document 1.179 +| <!DOCTYPE html> 1.180 +| <html> 1.181 +| <head> 1.182 +| <body> 1.183 +| <p> 1.184 +| <button> 1.185 +| <dt> 1.186 + 1.187 +#data 1.188 +<!doctype html><p><button><plaintext> 1.189 +#errors 1.190 +(1,37): expected-closing-tag-but-got-eof 1.191 +#document 1.192 +| <!DOCTYPE html> 1.193 +| <html> 1.194 +| <head> 1.195 +| <body> 1.196 +| <p> 1.197 +| <button> 1.198 +| <plaintext> 1.199 + 1.200 +#data 1.201 +<!doctype html><p><button><table> 1.202 +#errors 1.203 +(1,33): eof-in-table 1.204 +#document 1.205 +| <!DOCTYPE html> 1.206 +| <html> 1.207 +| <head> 1.208 +| <body> 1.209 +| <p> 1.210 +| <button> 1.211 +| <table> 1.212 + 1.213 +#data 1.214 +<!doctype html><p><button><hr> 1.215 +#errors 1.216 +(1,30): expected-closing-tag-but-got-eof 1.217 +#document 1.218 +| <!DOCTYPE html> 1.219 +| <html> 1.220 +| <head> 1.221 +| <body> 1.222 +| <p> 1.223 +| <button> 1.224 +| <hr> 1.225 + 1.226 +#data 1.227 +<!doctype html><p><button><xmp> 1.228 +#errors 1.229 +(1,31): expected-named-closing-tag-but-got-eof 1.230 +(1,31): expected-closing-tag-but-got-eof 1.231 +#document 1.232 +| <!DOCTYPE html> 1.233 +| <html> 1.234 +| <head> 1.235 +| <body> 1.236 +| <p> 1.237 +| <button> 1.238 +| <xmp> 1.239 + 1.240 +#data 1.241 +<!doctype html><p><button></p> 1.242 +#errors 1.243 +(1,30): unexpected-end-tag 1.244 +(1,30): expected-closing-tag-but-got-eof 1.245 +#document 1.246 +| <!DOCTYPE html> 1.247 +| <html> 1.248 +| <head> 1.249 +| <body> 1.250 +| <p> 1.251 +| <button> 1.252 +| <p> 1.253 + 1.254 +#data 1.255 +<!doctype html><address><button></address>a 1.256 +#errors 1.257 +(1,42): end-tag-too-early 1.258 +#document 1.259 +| <!DOCTYPE html> 1.260 +| <html> 1.261 +| <head> 1.262 +| <body> 1.263 +| <address> 1.264 +| <button> 1.265 +| "a" 1.266 + 1.267 +#data 1.268 +<!doctype html><address><button></address>a 1.269 +#errors 1.270 +(1,42): end-tag-too-early 1.271 +#document 1.272 +| <!DOCTYPE html> 1.273 +| <html> 1.274 +| <head> 1.275 +| <body> 1.276 +| <address> 1.277 +| <button> 1.278 +| "a" 1.279 + 1.280 +#data 1.281 +<p><table></p> 1.282 +#errors 1.283 +(1,3): expected-doctype-but-got-start-tag 1.284 +(1,14): unexpected-end-tag-implies-table-voodoo 1.285 +(1,14): unexpected-end-tag 1.286 +(1,14): eof-in-table 1.287 +#document 1.288 +| <html> 1.289 +| <head> 1.290 +| <body> 1.291 +| <p> 1.292 +| <p> 1.293 +| <table> 1.294 + 1.295 +#data 1.296 +<!doctype html><svg> 1.297 +#errors 1.298 +(1,20): expected-closing-tag-but-got-eof 1.299 +#document 1.300 +| <!DOCTYPE html> 1.301 +| <html> 1.302 +| <head> 1.303 +| <body> 1.304 +| <svg svg> 1.305 + 1.306 +#data 1.307 +<!doctype html><p><figcaption> 1.308 +#errors 1.309 +(1,30): expected-closing-tag-but-got-eof 1.310 +#document 1.311 +| <!DOCTYPE html> 1.312 +| <html> 1.313 +| <head> 1.314 +| <body> 1.315 +| <p> 1.316 +| <figcaption> 1.317 + 1.318 +#data 1.319 +<!doctype html><p><summary> 1.320 +#errors 1.321 +(1,27): expected-closing-tag-but-got-eof 1.322 +#document 1.323 +| <!DOCTYPE html> 1.324 +| <html> 1.325 +| <head> 1.326 +| <body> 1.327 +| <p> 1.328 +| <summary> 1.329 + 1.330 +#data 1.331 +<!doctype html><form><table><form> 1.332 +#errors 1.333 +(1,34): unexpected-form-in-table 1.334 +(1,34): eof-in-table 1.335 +#document 1.336 +| <!DOCTYPE html> 1.337 +| <html> 1.338 +| <head> 1.339 +| <body> 1.340 +| <form> 1.341 +| <table> 1.342 + 1.343 +#data 1.344 +<!doctype html><table><form><form> 1.345 +#errors 1.346 +(1,28): unexpected-form-in-table 1.347 +(1,34): unexpected-form-in-table 1.348 +(1,34): eof-in-table 1.349 +#document 1.350 +| <!DOCTYPE html> 1.351 +| <html> 1.352 +| <head> 1.353 +| <body> 1.354 +| <table> 1.355 +| <form> 1.356 + 1.357 +#data 1.358 +<!doctype html><table><form></table><form> 1.359 +#errors 1.360 +(1,28): unexpected-form-in-table 1.361 +(1,42): unexpected-start-tag 1.362 +#document 1.363 +| <!DOCTYPE html> 1.364 +| <html> 1.365 +| <head> 1.366 +| <body> 1.367 +| <table> 1.368 +| <form> 1.369 + 1.370 +#data 1.371 +<!doctype html><svg><foreignObject><p> 1.372 +#errors 1.373 +(1,38): expected-closing-tag-but-got-eof 1.374 +#document 1.375 +| <!DOCTYPE html> 1.376 +| <html> 1.377 +| <head> 1.378 +| <body> 1.379 +| <svg svg> 1.380 +| <svg foreignObject> 1.381 +| <p> 1.382 + 1.383 +#data 1.384 +<!doctype html><svg><title>abc 1.385 +#errors 1.386 +(1,30): expected-closing-tag-but-got-eof 1.387 +#document 1.388 +| <!DOCTYPE html> 1.389 +| <html> 1.390 +| <head> 1.391 +| <body> 1.392 +| <svg svg> 1.393 +| <svg title> 1.394 +| "abc" 1.395 + 1.396 +#data 1.397 +<option><span><option> 1.398 +#errors 1.399 +(1,8): expected-doctype-but-got-start-tag 1.400 +(1,22): expected-closing-tag-but-got-eof 1.401 +#document 1.402 +| <html> 1.403 +| <head> 1.404 +| <body> 1.405 +| <option> 1.406 +| <span> 1.407 +| <option> 1.408 + 1.409 +#data 1.410 +<option><option> 1.411 +#errors 1.412 +(1,8): expected-doctype-but-got-start-tag 1.413 +(1,16): expected-closing-tag-but-got-eof 1.414 +#document 1.415 +| <html> 1.416 +| <head> 1.417 +| <body> 1.418 +| <option> 1.419 +| <option> 1.420 + 1.421 +#data 1.422 +<math><annotation-xml><div> 1.423 +#errors 1.424 +(1,6): expected-doctype-but-got-start-tag 1.425 +(1,27): unexpected-html-element-in-foreign-content 1.426 +(1,27): expected-closing-tag-but-got-eof 1.427 +#document 1.428 +| <html> 1.429 +| <head> 1.430 +| <body> 1.431 +| <math math> 1.432 +| <math annotation-xml> 1.433 +| <div> 1.434 + 1.435 +#data 1.436 +<math><annotation-xml encoding="application/svg+xml"><div> 1.437 +#errors 1.438 +(1,6): expected-doctype-but-got-start-tag 1.439 +(1,58): unexpected-html-element-in-foreign-content 1.440 +(1,58): expected-closing-tag-but-got-eof 1.441 +#document 1.442 +| <html> 1.443 +| <head> 1.444 +| <body> 1.445 +| <math math> 1.446 +| <math annotation-xml> 1.447 +| encoding="application/svg+xml" 1.448 +| <div> 1.449 + 1.450 +#data 1.451 +<math><annotation-xml encoding="application/xhtml+xml"><div> 1.452 +#errors 1.453 +(1,6): expected-doctype-but-got-start-tag 1.454 +(1,60): expected-closing-tag-but-got-eof 1.455 +#document 1.456 +| <html> 1.457 +| <head> 1.458 +| <body> 1.459 +| <math math> 1.460 +| <math annotation-xml> 1.461 +| encoding="application/xhtml+xml" 1.462 +| <div> 1.463 + 1.464 +#data 1.465 +<math><annotation-xml encoding="aPPlication/xhtmL+xMl"><div> 1.466 +#errors 1.467 +(1,6): expected-doctype-but-got-start-tag 1.468 +(1,60): expected-closing-tag-but-got-eof 1.469 +#document 1.470 +| <html> 1.471 +| <head> 1.472 +| <body> 1.473 +| <math math> 1.474 +| <math annotation-xml> 1.475 +| encoding="aPPlication/xhtmL+xMl" 1.476 +| <div> 1.477 + 1.478 +#data 1.479 +<math><annotation-xml encoding="text/html"><div> 1.480 +#errors 1.481 +(1,6): expected-doctype-but-got-start-tag 1.482 +(1,48): expected-closing-tag-but-got-eof 1.483 +#document 1.484 +| <html> 1.485 +| <head> 1.486 +| <body> 1.487 +| <math math> 1.488 +| <math annotation-xml> 1.489 +| encoding="text/html" 1.490 +| <div> 1.491 + 1.492 +#data 1.493 +<math><annotation-xml encoding="Text/htmL"><div> 1.494 +#errors 1.495 +(1,6): expected-doctype-but-got-start-tag 1.496 +(1,48): expected-closing-tag-but-got-eof 1.497 +#document 1.498 +| <html> 1.499 +| <head> 1.500 +| <body> 1.501 +| <math math> 1.502 +| <math annotation-xml> 1.503 +| encoding="Text/htmL" 1.504 +| <div> 1.505 + 1.506 +#data 1.507 +<math><annotation-xml encoding=" text/html "><div> 1.508 +#errors 1.509 +(1,6): expected-doctype-but-got-start-tag 1.510 +(1,50): unexpected-html-element-in-foreign-content 1.511 +(1,50): expected-closing-tag-but-got-eof 1.512 +#document 1.513 +| <html> 1.514 +| <head> 1.515 +| <body> 1.516 +| <math math> 1.517 +| <math annotation-xml> 1.518 +| encoding=" text/html " 1.519 +| <div>