1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/parser/htmlparser/tests/mochitest/html5lib_tree_construction/adoption01.dat Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,337 @@ 1.4 +#data 1.5 +<a><p></a></p> 1.6 +#errors 1.7 +(1,3): expected-doctype-but-got-start-tag 1.8 +(1,10): adoption-agency-1.3 1.9 +#document 1.10 +| <html> 1.11 +| <head> 1.12 +| <body> 1.13 +| <a> 1.14 +| <p> 1.15 +| <a> 1.16 + 1.17 +#data 1.18 +<a>1<p>2</a>3</p> 1.19 +#errors 1.20 +(1,3): expected-doctype-but-got-start-tag 1.21 +(1,12): adoption-agency-1.3 1.22 +#document 1.23 +| <html> 1.24 +| <head> 1.25 +| <body> 1.26 +| <a> 1.27 +| "1" 1.28 +| <p> 1.29 +| <a> 1.30 +| "2" 1.31 +| "3" 1.32 + 1.33 +#data 1.34 +<a>1<button>2</a>3</button> 1.35 +#errors 1.36 +(1,3): expected-doctype-but-got-start-tag 1.37 +(1,17): adoption-agency-1.3 1.38 +#document 1.39 +| <html> 1.40 +| <head> 1.41 +| <body> 1.42 +| <a> 1.43 +| "1" 1.44 +| <button> 1.45 +| <a> 1.46 +| "2" 1.47 +| "3" 1.48 + 1.49 +#data 1.50 +<a>1<b>2</a>3</b> 1.51 +#errors 1.52 +(1,3): expected-doctype-but-got-start-tag 1.53 +(1,12): adoption-agency-1.3 1.54 +#document 1.55 +| <html> 1.56 +| <head> 1.57 +| <body> 1.58 +| <a> 1.59 +| "1" 1.60 +| <b> 1.61 +| "2" 1.62 +| <b> 1.63 +| "3" 1.64 + 1.65 +#data 1.66 +<a>1<div>2<div>3</a>4</div>5</div> 1.67 +#errors 1.68 +(1,3): expected-doctype-but-got-start-tag 1.69 +(1,20): adoption-agency-1.3 1.70 +(1,20): adoption-agency-1.3 1.71 +#document 1.72 +| <html> 1.73 +| <head> 1.74 +| <body> 1.75 +| <a> 1.76 +| "1" 1.77 +| <div> 1.78 +| <a> 1.79 +| "2" 1.80 +| <div> 1.81 +| <a> 1.82 +| "3" 1.83 +| "4" 1.84 +| "5" 1.85 + 1.86 +#data 1.87 +<table><a>1<p>2</a>3</p> 1.88 +#errors 1.89 +(1,7): expected-doctype-but-got-start-tag 1.90 +(1,10): unexpected-start-tag-implies-table-voodoo 1.91 +(1,11): unexpected-character-implies-table-voodoo 1.92 +(1,14): unexpected-start-tag-implies-table-voodoo 1.93 +(1,15): unexpected-character-implies-table-voodoo 1.94 +(1,19): unexpected-end-tag-implies-table-voodoo 1.95 +(1,19): adoption-agency-1.3 1.96 +(1,20): unexpected-character-implies-table-voodoo 1.97 +(1,24): unexpected-end-tag-implies-table-voodoo 1.98 +(1,24): eof-in-table 1.99 +#document 1.100 +| <html> 1.101 +| <head> 1.102 +| <body> 1.103 +| <a> 1.104 +| "1" 1.105 +| <p> 1.106 +| <a> 1.107 +| "2" 1.108 +| "3" 1.109 +| <table> 1.110 + 1.111 +#data 1.112 +<b><b><a><p></a> 1.113 +#errors 1.114 +(1,3): expected-doctype-but-got-start-tag 1.115 +(1,16): adoption-agency-1.3 1.116 +(1,16): expected-closing-tag-but-got-eof 1.117 +#document 1.118 +| <html> 1.119 +| <head> 1.120 +| <body> 1.121 +| <b> 1.122 +| <b> 1.123 +| <a> 1.124 +| <p> 1.125 +| <a> 1.126 + 1.127 +#data 1.128 +<b><a><b><p></a> 1.129 +#errors 1.130 +(1,3): expected-doctype-but-got-start-tag 1.131 +(1,16): adoption-agency-1.3 1.132 +(1,16): expected-closing-tag-but-got-eof 1.133 +#document 1.134 +| <html> 1.135 +| <head> 1.136 +| <body> 1.137 +| <b> 1.138 +| <a> 1.139 +| <b> 1.140 +| <b> 1.141 +| <p> 1.142 +| <a> 1.143 + 1.144 +#data 1.145 +<a><b><b><p></a> 1.146 +#errors 1.147 +(1,3): expected-doctype-but-got-start-tag 1.148 +(1,16): adoption-agency-1.3 1.149 +(1,16): expected-closing-tag-but-got-eof 1.150 +#document 1.151 +| <html> 1.152 +| <head> 1.153 +| <body> 1.154 +| <a> 1.155 +| <b> 1.156 +| <b> 1.157 +| <b> 1.158 +| <b> 1.159 +| <p> 1.160 +| <a> 1.161 + 1.162 +#data 1.163 +<p>1<s id="A">2<b id="B">3</p>4</s>5</b> 1.164 +#errors 1.165 +(1,3): expected-doctype-but-got-start-tag 1.166 +(1,30): unexpected-end-tag 1.167 +(1,35): adoption-agency-1.3 1.168 +#document 1.169 +| <html> 1.170 +| <head> 1.171 +| <body> 1.172 +| <p> 1.173 +| "1" 1.174 +| <s> 1.175 +| id="A" 1.176 +| "2" 1.177 +| <b> 1.178 +| id="B" 1.179 +| "3" 1.180 +| <s> 1.181 +| id="A" 1.182 +| <b> 1.183 +| id="B" 1.184 +| "4" 1.185 +| <b> 1.186 +| id="B" 1.187 +| "5" 1.188 + 1.189 +#data 1.190 +<table><a>1<td>2</td>3</table> 1.191 +#errors 1.192 +(1,7): expected-doctype-but-got-start-tag 1.193 +(1,10): unexpected-start-tag-implies-table-voodoo 1.194 +(1,11): unexpected-character-implies-table-voodoo 1.195 +(1,15): unexpected-cell-in-table-body 1.196 +(1,30): unexpected-implied-end-tag-in-table-view 1.197 +#document 1.198 +| <html> 1.199 +| <head> 1.200 +| <body> 1.201 +| <a> 1.202 +| "1" 1.203 +| <a> 1.204 +| "3" 1.205 +| <table> 1.206 +| <tbody> 1.207 +| <tr> 1.208 +| <td> 1.209 +| "2" 1.210 + 1.211 +#data 1.212 +<table>A<td>B</td>C</table> 1.213 +#errors 1.214 +(1,7): expected-doctype-but-got-start-tag 1.215 +(1,8): unexpected-character-implies-table-voodoo 1.216 +(1,12): unexpected-cell-in-table-body 1.217 +(1,22): unexpected-character-implies-table-voodoo 1.218 +#document 1.219 +| <html> 1.220 +| <head> 1.221 +| <body> 1.222 +| "AC" 1.223 +| <table> 1.224 +| <tbody> 1.225 +| <tr> 1.226 +| <td> 1.227 +| "B" 1.228 + 1.229 +#data 1.230 +<a><svg><tr><input></a> 1.231 +#errors 1.232 +(1,3): expected-doctype-but-got-start-tag 1.233 +(1,23): unexpected-end-tag 1.234 +(1,23): adoption-agency-1.3 1.235 +#document 1.236 +| <html> 1.237 +| <head> 1.238 +| <body> 1.239 +| <a> 1.240 +| <svg svg> 1.241 +| <svg tr> 1.242 +| <svg input> 1.243 + 1.244 +#data 1.245 +<div><a><b><div><div><div><div><div><div><div><div><div><div></a> 1.246 +#errors 1.247 +(1,5): expected-doctype-but-got-start-tag 1.248 +(1,65): adoption-agency-1.3 1.249 +(1,65): adoption-agency-1.3 1.250 +(1,65): adoption-agency-1.3 1.251 +(1,65): adoption-agency-1.3 1.252 +(1,65): adoption-agency-1.3 1.253 +(1,65): adoption-agency-1.3 1.254 +(1,65): adoption-agency-1.3 1.255 +(1,65): adoption-agency-1.3 1.256 +(1,65): expected-closing-tag-but-got-eof 1.257 +#document 1.258 +| <html> 1.259 +| <head> 1.260 +| <body> 1.261 +| <div> 1.262 +| <a> 1.263 +| <b> 1.264 +| <b> 1.265 +| <div> 1.266 +| <a> 1.267 +| <div> 1.268 +| <a> 1.269 +| <div> 1.270 +| <a> 1.271 +| <div> 1.272 +| <a> 1.273 +| <div> 1.274 +| <a> 1.275 +| <div> 1.276 +| <a> 1.277 +| <div> 1.278 +| <a> 1.279 +| <div> 1.280 +| <a> 1.281 +| <div> 1.282 +| <div> 1.283 + 1.284 +#data 1.285 +<div><a><b><u><i><code><div></a> 1.286 +#errors 1.287 +(1,5): expected-doctype-but-got-start-tag 1.288 +(1,32): adoption-agency-1.3 1.289 +(1,32): expected-closing-tag-but-got-eof 1.290 +#document 1.291 +| <html> 1.292 +| <head> 1.293 +| <body> 1.294 +| <div> 1.295 +| <a> 1.296 +| <b> 1.297 +| <u> 1.298 +| <i> 1.299 +| <code> 1.300 +| <u> 1.301 +| <i> 1.302 +| <code> 1.303 +| <div> 1.304 +| <a> 1.305 + 1.306 +#data 1.307 +<b><b><b><b>x</b></b></b></b>y 1.308 +#errors 1.309 +(1,3): expected-doctype-but-got-start-tag 1.310 +#document 1.311 +| <html> 1.312 +| <head> 1.313 +| <body> 1.314 +| <b> 1.315 +| <b> 1.316 +| <b> 1.317 +| <b> 1.318 +| "x" 1.319 +| "y" 1.320 + 1.321 +#data 1.322 +<p><b><b><b><b><p>x 1.323 +#errors 1.324 +(1,3): expected-doctype-but-got-start-tag 1.325 +(1,18): unexpected-end-tag 1.326 +(1,19): expected-closing-tag-but-got-eof 1.327 +#document 1.328 +| <html> 1.329 +| <head> 1.330 +| <body> 1.331 +| <p> 1.332 +| <b> 1.333 +| <b> 1.334 +| <b> 1.335 +| <b> 1.336 +| <p> 1.337 +| <b> 1.338 +| <b> 1.339 +| <b> 1.340 +| "x"