parser/htmlparser/tests/mochitest/html5lib_tree_construction/tests7.dat

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/parser/htmlparser/tests/mochitest/html5lib_tree_construction/tests7.dat	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,402 @@
     1.4 +#data
     1.5 +<!doctype html><body><title>X</title>
     1.6 +#errors
     1.7 +#document
     1.8 +| <!DOCTYPE html>
     1.9 +| <html>
    1.10 +|   <head>
    1.11 +|   <body>
    1.12 +|     <title>
    1.13 +|       "X"
    1.14 +
    1.15 +#data
    1.16 +<!doctype html><table><title>X</title></table>
    1.17 +#errors
    1.18 +(1,29): unexpected-start-tag-implies-table-voodoo
    1.19 +#document
    1.20 +| <!DOCTYPE html>
    1.21 +| <html>
    1.22 +|   <head>
    1.23 +|   <body>
    1.24 +|     <title>
    1.25 +|       "X"
    1.26 +|     <table>
    1.27 +
    1.28 +#data
    1.29 +<!doctype html><head></head><title>X</title>
    1.30 +#errors
    1.31 +(1,35): unexpected-start-tag-out-of-my-head
    1.32 +#document
    1.33 +| <!DOCTYPE html>
    1.34 +| <html>
    1.35 +|   <head>
    1.36 +|     <title>
    1.37 +|       "X"
    1.38 +|   <body>
    1.39 +
    1.40 +#data
    1.41 +<!doctype html></head><title>X</title>
    1.42 +#errors
    1.43 +(1,29): unexpected-start-tag-out-of-my-head
    1.44 +#document
    1.45 +| <!DOCTYPE html>
    1.46 +| <html>
    1.47 +|   <head>
    1.48 +|     <title>
    1.49 +|       "X"
    1.50 +|   <body>
    1.51 +
    1.52 +#data
    1.53 +<!doctype html><table><meta></table>
    1.54 +#errors
    1.55 +(1,28): unexpected-start-tag-implies-table-voodoo
    1.56 +#document
    1.57 +| <!DOCTYPE html>
    1.58 +| <html>
    1.59 +|   <head>
    1.60 +|   <body>
    1.61 +|     <meta>
    1.62 +|     <table>
    1.63 +
    1.64 +#data
    1.65 +<!doctype html><table>X<tr><td><table> <meta></table></table>
    1.66 +#errors
    1.67 +(1,45): unexpected-start-tag-implies-table-voodoo
    1.68 +#document
    1.69 +| <!DOCTYPE html>
    1.70 +| <html>
    1.71 +|   <head>
    1.72 +|   <body>
    1.73 +|     "X"
    1.74 +|     <table>
    1.75 +|       <tbody>
    1.76 +|         <tr>
    1.77 +|           <td>
    1.78 +|             <meta>
    1.79 +|             <table>
    1.80 +|               " "
    1.81 +
    1.82 +#data
    1.83 +<!doctype html><html> <head>
    1.84 +#errors
    1.85 +#document
    1.86 +| <!DOCTYPE html>
    1.87 +| <html>
    1.88 +|   <head>
    1.89 +|   <body>
    1.90 +
    1.91 +#data
    1.92 +<!doctype html> <head>
    1.93 +#errors
    1.94 +#document
    1.95 +| <!DOCTYPE html>
    1.96 +| <html>
    1.97 +|   <head>
    1.98 +|   <body>
    1.99 +
   1.100 +#data
   1.101 +<!doctype html><table><style> <tr>x </style> </table>
   1.102 +#errors
   1.103 +#document
   1.104 +| <!DOCTYPE html>
   1.105 +| <html>
   1.106 +|   <head>
   1.107 +|   <body>
   1.108 +|     <table>
   1.109 +|       <style>
   1.110 +|         " <tr>x "
   1.111 +|       " "
   1.112 +
   1.113 +#data
   1.114 +<!doctype html><table><TBODY><script> <tr>x </script> </table>
   1.115 +#errors
   1.116 +#document
   1.117 +| <!DOCTYPE html>
   1.118 +| <html>
   1.119 +|   <head>
   1.120 +|   <body>
   1.121 +|     <table>
   1.122 +|       <tbody>
   1.123 +|         <script>
   1.124 +|           " <tr>x "
   1.125 +|         " "
   1.126 +
   1.127 +#data
   1.128 +<!doctype html><p><applet><p>X</p></applet>
   1.129 +#errors
   1.130 +#document
   1.131 +| <!DOCTYPE html>
   1.132 +| <html>
   1.133 +|   <head>
   1.134 +|   <body>
   1.135 +|     <p>
   1.136 +|       <applet>
   1.137 +|         <p>
   1.138 +|           "X"
   1.139 +
   1.140 +#data
   1.141 +<!doctype html><listing>
   1.142 +X</listing>
   1.143 +#errors
   1.144 +#document
   1.145 +| <!DOCTYPE html>
   1.146 +| <html>
   1.147 +|   <head>
   1.148 +|   <body>
   1.149 +|     <listing>
   1.150 +|       "X"
   1.151 +
   1.152 +#data
   1.153 +<!doctype html><select><input>X
   1.154 +#errors
   1.155 +(1,30): unexpected-input-in-select
   1.156 +#document
   1.157 +| <!DOCTYPE html>
   1.158 +| <html>
   1.159 +|   <head>
   1.160 +|   <body>
   1.161 +|     <select>
   1.162 +|     <input>
   1.163 +|     "X"
   1.164 +
   1.165 +#data
   1.166 +<!doctype html><select><select>X
   1.167 +#errors
   1.168 +(1,31): unexpected-select-in-select
   1.169 +#document
   1.170 +| <!DOCTYPE html>
   1.171 +| <html>
   1.172 +|   <head>
   1.173 +|   <body>
   1.174 +|     <select>
   1.175 +|     "X"
   1.176 +
   1.177 +#data
   1.178 +<!doctype html><table><input type=hidDEN></table>
   1.179 +#errors
   1.180 +(1,41): unexpected-hidden-input-in-table
   1.181 +#document
   1.182 +| <!DOCTYPE html>
   1.183 +| <html>
   1.184 +|   <head>
   1.185 +|   <body>
   1.186 +|     <table>
   1.187 +|       <input>
   1.188 +|         type="hidDEN"
   1.189 +
   1.190 +#data
   1.191 +<!doctype html><table>X<input type=hidDEN></table>
   1.192 +#errors
   1.193 +(1,23): foster-parenting-character
   1.194 +(1,42): unexpected-hidden-input-in-table
   1.195 +#document
   1.196 +| <!DOCTYPE html>
   1.197 +| <html>
   1.198 +|   <head>
   1.199 +|   <body>
   1.200 +|     "X"
   1.201 +|     <table>
   1.202 +|       <input>
   1.203 +|         type="hidDEN"
   1.204 +
   1.205 +#data
   1.206 +<!doctype html><table>  <input type=hidDEN></table>
   1.207 +#errors
   1.208 +(1,43): unexpected-hidden-input-in-table
   1.209 +#document
   1.210 +| <!DOCTYPE html>
   1.211 +| <html>
   1.212 +|   <head>
   1.213 +|   <body>
   1.214 +|     <table>
   1.215 +|       "  "
   1.216 +|       <input>
   1.217 +|         type="hidDEN"
   1.218 +
   1.219 +#data
   1.220 +<!doctype html><table>  <input type='hidDEN'></table>
   1.221 +#errors
   1.222 +(1,45): unexpected-hidden-input-in-table
   1.223 +#document
   1.224 +| <!DOCTYPE html>
   1.225 +| <html>
   1.226 +|   <head>
   1.227 +|   <body>
   1.228 +|     <table>
   1.229 +|       "  "
   1.230 +|       <input>
   1.231 +|         type="hidDEN"
   1.232 +
   1.233 +#data
   1.234 +<!doctype html><table><input type=" hidden"><input type=hidDEN></table>
   1.235 +#errors
   1.236 +(1,44): unexpected-start-tag-implies-table-voodoo
   1.237 +(1,63): unexpected-hidden-input-in-table
   1.238 +#document
   1.239 +| <!DOCTYPE html>
   1.240 +| <html>
   1.241 +|   <head>
   1.242 +|   <body>
   1.243 +|     <input>
   1.244 +|       type=" hidden"
   1.245 +|     <table>
   1.246 +|       <input>
   1.247 +|         type="hidDEN"
   1.248 +
   1.249 +#data
   1.250 +<!doctype html><table><select>X<tr>
   1.251 +#errors
   1.252 +(1,30): unexpected-start-tag-implies-table-voodoo
   1.253 +(1,35): unexpected-table-element-start-tag-in-select-in-table
   1.254 +(1,35): eof-in-table
   1.255 +#document
   1.256 +| <!DOCTYPE html>
   1.257 +| <html>
   1.258 +|   <head>
   1.259 +|   <body>
   1.260 +|     <select>
   1.261 +|       "X"
   1.262 +|     <table>
   1.263 +|       <tbody>
   1.264 +|         <tr>
   1.265 +
   1.266 +#data
   1.267 +<!doctype html><select>X</select>
   1.268 +#errors
   1.269 +#document
   1.270 +| <!DOCTYPE html>
   1.271 +| <html>
   1.272 +|   <head>
   1.273 +|   <body>
   1.274 +|     <select>
   1.275 +|       "X"
   1.276 +
   1.277 +#data
   1.278 +<!DOCTYPE hTmL><html></html>
   1.279 +#errors
   1.280 +#document
   1.281 +| <!DOCTYPE html>
   1.282 +| <html>
   1.283 +|   <head>
   1.284 +|   <body>
   1.285 +
   1.286 +#data
   1.287 +<!DOCTYPE HTML><html></html>
   1.288 +#errors
   1.289 +#document
   1.290 +| <!DOCTYPE html>
   1.291 +| <html>
   1.292 +|   <head>
   1.293 +|   <body>
   1.294 +
   1.295 +#data
   1.296 +<body>X</body></body>
   1.297 +#errors
   1.298 +(1,21): unexpected-end-tag-after-body
   1.299 +#document-fragment
   1.300 +html
   1.301 +#document
   1.302 +| <head>
   1.303 +| <body>
   1.304 +|   "X"
   1.305 +
   1.306 +#data
   1.307 +<div><p>a</x> b
   1.308 +#errors
   1.309 +(1,5): expected-doctype-but-got-start-tag
   1.310 +(1,13): unexpected-end-tag
   1.311 +(1,15): expected-closing-tag-but-got-eof
   1.312 +#document
   1.313 +| <html>
   1.314 +|   <head>
   1.315 +|   <body>
   1.316 +|     <div>
   1.317 +|       <p>
   1.318 +|         "a b"
   1.319 +
   1.320 +#data
   1.321 +<table><tr><td><code></code> </table>
   1.322 +#errors
   1.323 +(1,7): expected-doctype-but-got-start-tag
   1.324 +#document
   1.325 +| <html>
   1.326 +|   <head>
   1.327 +|   <body>
   1.328 +|     <table>
   1.329 +|       <tbody>
   1.330 +|         <tr>
   1.331 +|           <td>
   1.332 +|             <code>
   1.333 +|             " "
   1.334 +
   1.335 +#data
   1.336 +<table><b><tr><td>aaa</td></tr>bbb</table>ccc
   1.337 +#errors
   1.338 +(1,7): expected-doctype-but-got-start-tag
   1.339 +(1,10): foster-parenting-start-tag
   1.340 +(1,32): foster-parenting-character
   1.341 +(1,33): foster-parenting-character
   1.342 +(1,34): foster-parenting-character
   1.343 +(1,45): expected-closing-tag-but-got-eof
   1.344 +#document
   1.345 +| <html>
   1.346 +|   <head>
   1.347 +|   <body>
   1.348 +|     <b>
   1.349 +|     <b>
   1.350 +|       "bbb"
   1.351 +|     <table>
   1.352 +|       <tbody>
   1.353 +|         <tr>
   1.354 +|           <td>
   1.355 +|             "aaa"
   1.356 +|     <b>
   1.357 +|       "ccc"
   1.358 +
   1.359 +#data
   1.360 +A<table><tr> B</tr> B</table>
   1.361 +#errors
   1.362 +(1,1): expected-doctype-but-got-chars
   1.363 +(1,13): foster-parenting-character
   1.364 +(1,14): foster-parenting-character
   1.365 +(1,20): foster-parenting-character
   1.366 +(1,21): foster-parenting-character
   1.367 +#document
   1.368 +| <html>
   1.369 +|   <head>
   1.370 +|   <body>
   1.371 +|     "A B B"
   1.372 +|     <table>
   1.373 +|       <tbody>
   1.374 +|         <tr>
   1.375 +
   1.376 +#data
   1.377 +A<table><tr> B</tr> </em>C</table>
   1.378 +#errors
   1.379 +(1,1): expected-doctype-but-got-chars
   1.380 +(1,13): foster-parenting-character
   1.381 +(1,14): foster-parenting-character
   1.382 +(1,20): foster-parenting-character
   1.383 +(1,25): unexpected-end-tag
   1.384 +(1,26): foster-parenting-character
   1.385 +#document
   1.386 +| <html>
   1.387 +|   <head>
   1.388 +|   <body>
   1.389 +|     "A BC"
   1.390 +|     <table>
   1.391 +|       <tbody>
   1.392 +|         <tr>
   1.393 +|         " "
   1.394 +
   1.395 +#data
   1.396 +<select><keygen>
   1.397 +#errors
   1.398 +(1,8): expected-doctype-but-got-start-tag
   1.399 +(1,16): unexpected-input-in-select
   1.400 +#document
   1.401 +| <html>
   1.402 +|   <head>
   1.403 +|   <body>
   1.404 +|     <select>
   1.405 +|     <keygen>

mercurial