1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/parser/htmlparser/tests/mochitest/html5lib_tree_construction/tests26.dat Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,398 @@ 1.4 +#data 1.5 +<!DOCTYPE html><body><a href='#1'><nobr>1<nobr></a><br><a href='#2'><nobr>2<nobr></a><br><a href='#3'><nobr>3<nobr></a> 1.6 +#errors 1.7 +(1,47): unexpected-start-tag-implies-end-tag 1.8 +(1,51): adoption-agency-1.3 1.9 +(1,74): unexpected-start-tag-implies-end-tag 1.10 +(1,74): adoption-agency-1.3 1.11 +(1,81): unexpected-start-tag-implies-end-tag 1.12 +(1,85): adoption-agency-1.3 1.13 +(1,108): unexpected-start-tag-implies-end-tag 1.14 +(1,108): adoption-agency-1.3 1.15 +(1,115): unexpected-start-tag-implies-end-tag 1.16 +(1,119): adoption-agency-1.3 1.17 +#document 1.18 +| <!DOCTYPE html> 1.19 +| <html> 1.20 +| <head> 1.21 +| <body> 1.22 +| <a> 1.23 +| href="#1" 1.24 +| <nobr> 1.25 +| "1" 1.26 +| <nobr> 1.27 +| <nobr> 1.28 +| <br> 1.29 +| <a> 1.30 +| href="#2" 1.31 +| <a> 1.32 +| href="#2" 1.33 +| <nobr> 1.34 +| "2" 1.35 +| <nobr> 1.36 +| <nobr> 1.37 +| <br> 1.38 +| <a> 1.39 +| href="#3" 1.40 +| <a> 1.41 +| href="#3" 1.42 +| <nobr> 1.43 +| "3" 1.44 +| <nobr> 1.45 + 1.46 +#data 1.47 +<!DOCTYPE html><body><b><nobr>1<nobr></b><i><nobr>2<nobr></i>3 1.48 +#errors 1.49 +(1,37): unexpected-start-tag-implies-end-tag 1.50 +(1,41): adoption-agency-1.3 1.51 +(1,50): unexpected-start-tag-implies-end-tag 1.52 +(1,50): adoption-agency-1.3 1.53 +(1,57): unexpected-start-tag-implies-end-tag 1.54 +(1,61): adoption-agency-1.3 1.55 +(1,62): expected-closing-tag-but-got-eof 1.56 +#document 1.57 +| <!DOCTYPE html> 1.58 +| <html> 1.59 +| <head> 1.60 +| <body> 1.61 +| <b> 1.62 +| <nobr> 1.63 +| "1" 1.64 +| <nobr> 1.65 +| <nobr> 1.66 +| <i> 1.67 +| <i> 1.68 +| <nobr> 1.69 +| "2" 1.70 +| <nobr> 1.71 +| <nobr> 1.72 +| "3" 1.73 + 1.74 +#data 1.75 +<!DOCTYPE html><body><b><nobr>1<table><nobr></b><i><nobr>2<nobr></i>3 1.76 +#errors 1.77 +(1,44): foster-parenting-start-tag 1.78 +(1,48): foster-parenting-end-tag 1.79 +(1,48): adoption-agency-1.3 1.80 +(1,51): foster-parenting-start-tag 1.81 +(1,57): foster-parenting-start-tag 1.82 +(1,57): nobr-already-in-scope 1.83 +(1,57): adoption-agency-1.2 1.84 +(1,58): foster-parenting-character 1.85 +(1,64): foster-parenting-start-tag 1.86 +(1,64): nobr-already-in-scope 1.87 +(1,68): foster-parenting-end-tag 1.88 +(1,68): adoption-agency-1.2 1.89 +(1,69): foster-parenting-character 1.90 +(1,69): eof-in-table 1.91 +#document 1.92 +| <!DOCTYPE html> 1.93 +| <html> 1.94 +| <head> 1.95 +| <body> 1.96 +| <b> 1.97 +| <nobr> 1.98 +| "1" 1.99 +| <nobr> 1.100 +| <i> 1.101 +| <i> 1.102 +| <nobr> 1.103 +| "2" 1.104 +| <nobr> 1.105 +| <nobr> 1.106 +| "3" 1.107 +| <table> 1.108 + 1.109 +#data 1.110 +<!DOCTYPE html><body><b><nobr>1<table><tr><td><nobr></b><i><nobr>2<nobr></i>3 1.111 +#errors 1.112 +(1,56): unexpected-end-tag 1.113 +(1,65): unexpected-start-tag-implies-end-tag 1.114 +(1,65): adoption-agency-1.3 1.115 +(1,72): unexpected-start-tag-implies-end-tag 1.116 +(1,76): adoption-agency-1.3 1.117 +(1,77): expected-closing-tag-but-got-eof 1.118 +#document 1.119 +| <!DOCTYPE html> 1.120 +| <html> 1.121 +| <head> 1.122 +| <body> 1.123 +| <b> 1.124 +| <nobr> 1.125 +| "1" 1.126 +| <table> 1.127 +| <tbody> 1.128 +| <tr> 1.129 +| <td> 1.130 +| <nobr> 1.131 +| <i> 1.132 +| <i> 1.133 +| <nobr> 1.134 +| "2" 1.135 +| <nobr> 1.136 +| <nobr> 1.137 +| "3" 1.138 + 1.139 +#data 1.140 +<!DOCTYPE html><body><b><nobr>1<div><nobr></b><i><nobr>2<nobr></i>3 1.141 +#errors 1.142 +(1,42): unexpected-start-tag-implies-end-tag 1.143 +(1,42): adoption-agency-1.3 1.144 +(1,46): adoption-agency-1.3 1.145 +(1,46): adoption-agency-1.3 1.146 +(1,55): unexpected-start-tag-implies-end-tag 1.147 +(1,55): adoption-agency-1.3 1.148 +(1,62): unexpected-start-tag-implies-end-tag 1.149 +(1,66): adoption-agency-1.3 1.150 +(1,67): expected-closing-tag-but-got-eof 1.151 +#document 1.152 +| <!DOCTYPE html> 1.153 +| <html> 1.154 +| <head> 1.155 +| <body> 1.156 +| <b> 1.157 +| <nobr> 1.158 +| "1" 1.159 +| <div> 1.160 +| <b> 1.161 +| <nobr> 1.162 +| <nobr> 1.163 +| <nobr> 1.164 +| <i> 1.165 +| <i> 1.166 +| <nobr> 1.167 +| "2" 1.168 +| <nobr> 1.169 +| <nobr> 1.170 +| "3" 1.171 + 1.172 +#data 1.173 +<!DOCTYPE html><body><b><nobr>1<nobr></b><div><i><nobr>2<nobr></i>3 1.174 +#errors 1.175 +(1,37): unexpected-start-tag-implies-end-tag 1.176 +(1,41): adoption-agency-1.3 1.177 +(1,55): unexpected-start-tag-implies-end-tag 1.178 +(1,55): adoption-agency-1.3 1.179 +(1,62): unexpected-start-tag-implies-end-tag 1.180 +(1,66): adoption-agency-1.3 1.181 +(1,67): expected-closing-tag-but-got-eof 1.182 +#document 1.183 +| <!DOCTYPE html> 1.184 +| <html> 1.185 +| <head> 1.186 +| <body> 1.187 +| <b> 1.188 +| <nobr> 1.189 +| "1" 1.190 +| <nobr> 1.191 +| <div> 1.192 +| <nobr> 1.193 +| <i> 1.194 +| <i> 1.195 +| <nobr> 1.196 +| "2" 1.197 +| <nobr> 1.198 +| <nobr> 1.199 +| "3" 1.200 + 1.201 +#data 1.202 +<!DOCTYPE html><body><b><nobr>1<nobr><ins></b><i><nobr> 1.203 +#errors 1.204 +(1,37): unexpected-start-tag-implies-end-tag 1.205 +(1,46): adoption-agency-1.3 1.206 +(1,55): unexpected-start-tag-implies-end-tag 1.207 +(1,55): adoption-agency-1.3 1.208 +(1,55): expected-closing-tag-but-got-eof 1.209 +#document 1.210 +| <!DOCTYPE html> 1.211 +| <html> 1.212 +| <head> 1.213 +| <body> 1.214 +| <b> 1.215 +| <nobr> 1.216 +| "1" 1.217 +| <nobr> 1.218 +| <ins> 1.219 +| <nobr> 1.220 +| <i> 1.221 +| <i> 1.222 +| <nobr> 1.223 + 1.224 +#data 1.225 +<!DOCTYPE html><body><b><nobr>1<ins><nobr></b><i>2 1.226 +#errors 1.227 +(1,42): unexpected-start-tag-implies-end-tag 1.228 +(1,42): adoption-agency-1.3 1.229 +(1,46): adoption-agency-1.3 1.230 +(1,50): expected-closing-tag-but-got-eof 1.231 +#document 1.232 +| <!DOCTYPE html> 1.233 +| <html> 1.234 +| <head> 1.235 +| <body> 1.236 +| <b> 1.237 +| <nobr> 1.238 +| "1" 1.239 +| <ins> 1.240 +| <nobr> 1.241 +| <nobr> 1.242 +| <i> 1.243 +| "2" 1.244 + 1.245 +#data 1.246 +<!DOCTYPE html><body><b>1<nobr></b><i><nobr>2</i> 1.247 +#errors 1.248 +(1,35): adoption-agency-1.3 1.249 +(1,44): unexpected-start-tag-implies-end-tag 1.250 +(1,44): adoption-agency-1.3 1.251 +(1,49): adoption-agency-1.3 1.252 +#document 1.253 +| <!DOCTYPE html> 1.254 +| <html> 1.255 +| <head> 1.256 +| <body> 1.257 +| <b> 1.258 +| "1" 1.259 +| <nobr> 1.260 +| <nobr> 1.261 +| <i> 1.262 +| <i> 1.263 +| <nobr> 1.264 +| "2" 1.265 + 1.266 +#data 1.267 +<p><code x</code></p> 1.268 + 1.269 +#errors 1.270 +(1,3): expected-doctype-but-got-start-tag 1.271 +(1,11): invalid-character-in-attribute-name 1.272 +(1,12): unexpected-character-after-solidus-in-tag 1.273 +(1,21): unexpected-end-tag 1.274 +(2,0): expected-closing-tag-but-got-eof 1.275 +#document 1.276 +| <html> 1.277 +| <head> 1.278 +| <body> 1.279 +| <p> 1.280 +| <code> 1.281 +| code="" 1.282 +| x<="" 1.283 +| <code> 1.284 +| code="" 1.285 +| x<="" 1.286 +| " 1.287 +" 1.288 + 1.289 +#data 1.290 +<!DOCTYPE html><svg><foreignObject><p><i></p>a 1.291 +#errors 1.292 +(1,45): unexpected-end-tag 1.293 +(1,46): expected-closing-tag-but-got-eof 1.294 +#document 1.295 +| <!DOCTYPE html> 1.296 +| <html> 1.297 +| <head> 1.298 +| <body> 1.299 +| <svg svg> 1.300 +| <svg foreignObject> 1.301 +| <p> 1.302 +| <i> 1.303 +| <i> 1.304 +| "a" 1.305 + 1.306 +#data 1.307 +<!DOCTYPE html><table><tr><td><svg><foreignObject><p><i></p>a 1.308 +#errors 1.309 +(1,60): unexpected-end-tag 1.310 +(1,61): expected-closing-tag-but-got-eof 1.311 +#document 1.312 +| <!DOCTYPE html> 1.313 +| <html> 1.314 +| <head> 1.315 +| <body> 1.316 +| <table> 1.317 +| <tbody> 1.318 +| <tr> 1.319 +| <td> 1.320 +| <svg svg> 1.321 +| <svg foreignObject> 1.322 +| <p> 1.323 +| <i> 1.324 +| <i> 1.325 +| "a" 1.326 + 1.327 +#data 1.328 +<!DOCTYPE html><math><mtext><p><i></p>a 1.329 +#errors 1.330 +(1,38): unexpected-end-tag 1.331 +(1,39): expected-closing-tag-but-got-eof 1.332 +#document 1.333 +| <!DOCTYPE html> 1.334 +| <html> 1.335 +| <head> 1.336 +| <body> 1.337 +| <math math> 1.338 +| <math mtext> 1.339 +| <p> 1.340 +| <i> 1.341 +| <i> 1.342 +| "a" 1.343 + 1.344 +#data 1.345 +<!DOCTYPE html><table><tr><td><math><mtext><p><i></p>a 1.346 +#errors 1.347 +(1,53): unexpected-end-tag 1.348 +(1,54): expected-closing-tag-but-got-eof 1.349 +#document 1.350 +| <!DOCTYPE html> 1.351 +| <html> 1.352 +| <head> 1.353 +| <body> 1.354 +| <table> 1.355 +| <tbody> 1.356 +| <tr> 1.357 +| <td> 1.358 +| <math math> 1.359 +| <math mtext> 1.360 +| <p> 1.361 +| <i> 1.362 +| <i> 1.363 +| "a" 1.364 + 1.365 +#data 1.366 +<!DOCTYPE html><body><div><!/div>a 1.367 +#errors 1.368 +(1,28): expected-dashes-or-doctype 1.369 +(1,34): expected-closing-tag-but-got-eof 1.370 +#document 1.371 +| <!DOCTYPE html> 1.372 +| <html> 1.373 +| <head> 1.374 +| <body> 1.375 +| <div> 1.376 +| <!-- /div --> 1.377 +| "a" 1.378 + 1.379 +#data 1.380 +<button><p><button> 1.381 +#errors 1.382 +Line 1 Col 8 Unexpected start tag (button). Expected DOCTYPE. 1.383 +Line 1 Col 19 Unexpected start tag (button) implies end tag (button). 1.384 +Line 1 Col 19 Expected closing tag. Unexpected end of file. 1.385 +#document 1.386 +| <html> 1.387 +| <head> 1.388 +| <body> 1.389 +| <button> 1.390 +| <p> 1.391 +| <button> 1.392 + 1.393 +#data 1.394 +<!DOCTYPE html><html><frameset></frameset></html></frameset> 1.395 +#errors 1.396 +60: Stray end tag “frameset”. 1.397 +#document 1.398 +| <!DOCTYPE html> 1.399 +| <html> 1.400 +| <head> 1.401 +| <frameset>