parser/htmlparser/tests/mochitest/html5lib_tree_construction/tests3.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/tests3.dat	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,306 @@
     1.4 +#data
     1.5 +<head></head><style></style>
     1.6 +#errors
     1.7 +(1,6): expected-doctype-but-got-start-tag
     1.8 +(1,20): unexpected-start-tag-out-of-my-head
     1.9 +#document
    1.10 +| <html>
    1.11 +|   <head>
    1.12 +|     <style>
    1.13 +|   <body>
    1.14 +
    1.15 +#data
    1.16 +<head></head><script></script>
    1.17 +#errors
    1.18 +(1,6): expected-doctype-but-got-start-tag
    1.19 +(1,21): unexpected-start-tag-out-of-my-head
    1.20 +#document
    1.21 +| <html>
    1.22 +|   <head>
    1.23 +|     <script>
    1.24 +|   <body>
    1.25 +
    1.26 +#data
    1.27 +<head></head><!-- --><style></style><!-- --><script></script>
    1.28 +#errors
    1.29 +(1,6): expected-doctype-but-got-start-tag
    1.30 +(1,28): unexpected-start-tag-out-of-my-head
    1.31 +(1,52): unexpected-start-tag-out-of-my-head
    1.32 +#document
    1.33 +| <html>
    1.34 +|   <head>
    1.35 +|     <style>
    1.36 +|     <script>
    1.37 +|   <!--   -->
    1.38 +|   <!--   -->
    1.39 +|   <body>
    1.40 +
    1.41 +#data
    1.42 +<head></head><!-- -->x<style></style><!-- --><script></script>
    1.43 +#errors
    1.44 +(1,6): expected-doctype-but-got-start-tag
    1.45 +#document
    1.46 +| <html>
    1.47 +|   <head>
    1.48 +|   <!--   -->
    1.49 +|   <body>
    1.50 +|     "x"
    1.51 +|     <style>
    1.52 +|     <!--   -->
    1.53 +|     <script>
    1.54 +
    1.55 +#data
    1.56 +<!DOCTYPE html><html><head></head><body><pre>
    1.57 +</pre></body></html>
    1.58 +#errors
    1.59 +#document
    1.60 +| <!DOCTYPE html>
    1.61 +| <html>
    1.62 +|   <head>
    1.63 +|   <body>
    1.64 +|     <pre>
    1.65 +
    1.66 +#data
    1.67 +<!DOCTYPE html><html><head></head><body><pre>
    1.68 +foo</pre></body></html>
    1.69 +#errors
    1.70 +#document
    1.71 +| <!DOCTYPE html>
    1.72 +| <html>
    1.73 +|   <head>
    1.74 +|   <body>
    1.75 +|     <pre>
    1.76 +|       "foo"
    1.77 +
    1.78 +#data
    1.79 +<!DOCTYPE html><html><head></head><body><pre>
    1.80 +
    1.81 +foo</pre></body></html>
    1.82 +#errors
    1.83 +#document
    1.84 +| <!DOCTYPE html>
    1.85 +| <html>
    1.86 +|   <head>
    1.87 +|   <body>
    1.88 +|     <pre>
    1.89 +|       "
    1.90 +foo"
    1.91 +
    1.92 +#data
    1.93 +<!DOCTYPE html><html><head></head><body><pre>
    1.94 +foo
    1.95 +</pre></body></html>
    1.96 +#errors
    1.97 +#document
    1.98 +| <!DOCTYPE html>
    1.99 +| <html>
   1.100 +|   <head>
   1.101 +|   <body>
   1.102 +|     <pre>
   1.103 +|       "foo
   1.104 +"
   1.105 +
   1.106 +#data
   1.107 +<!DOCTYPE html><html><head></head><body><pre>x</pre><span>
   1.108 +</span></body></html>
   1.109 +#errors
   1.110 +#document
   1.111 +| <!DOCTYPE html>
   1.112 +| <html>
   1.113 +|   <head>
   1.114 +|   <body>
   1.115 +|     <pre>
   1.116 +|       "x"
   1.117 +|     <span>
   1.118 +|       "
   1.119 +"
   1.120 +
   1.121 +#data
   1.122 +<!DOCTYPE html><html><head></head><body><pre>x
   1.123 +y</pre></body></html>
   1.124 +#errors
   1.125 +#document
   1.126 +| <!DOCTYPE html>
   1.127 +| <html>
   1.128 +|   <head>
   1.129 +|   <body>
   1.130 +|     <pre>
   1.131 +|       "x
   1.132 +y"
   1.133 +
   1.134 +#data
   1.135 +<!DOCTYPE html><html><head></head><body><pre>x<div>
   1.136 +y</pre></body></html>
   1.137 +#errors
   1.138 +(2,7): end-tag-too-early
   1.139 +#document
   1.140 +| <!DOCTYPE html>
   1.141 +| <html>
   1.142 +|   <head>
   1.143 +|   <body>
   1.144 +|     <pre>
   1.145 +|       "x"
   1.146 +|       <div>
   1.147 +|         "
   1.148 +y"
   1.149 +
   1.150 +#data
   1.151 +<!DOCTYPE html><pre>&#x0a;&#x0a;A</pre>
   1.152 +#errors
   1.153 +#document
   1.154 +| <!DOCTYPE html>
   1.155 +| <html>
   1.156 +|   <head>
   1.157 +|   <body>
   1.158 +|     <pre>
   1.159 +|       "
   1.160 +A"
   1.161 +
   1.162 +#data
   1.163 +<!DOCTYPE html><HTML><META><HEAD></HEAD></HTML>
   1.164 +#errors
   1.165 +(1,33): two-heads-are-not-better-than-one
   1.166 +#document
   1.167 +| <!DOCTYPE html>
   1.168 +| <html>
   1.169 +|   <head>
   1.170 +|     <meta>
   1.171 +|   <body>
   1.172 +
   1.173 +#data
   1.174 +<!DOCTYPE html><HTML><HEAD><head></HEAD></HTML>
   1.175 +#errors
   1.176 +(1,33): two-heads-are-not-better-than-one
   1.177 +#document
   1.178 +| <!DOCTYPE html>
   1.179 +| <html>
   1.180 +|   <head>
   1.181 +|   <body>
   1.182 +
   1.183 +#data
   1.184 +<textarea>foo<span>bar</span><i>baz
   1.185 +#errors
   1.186 +(1,10): expected-doctype-but-got-start-tag
   1.187 +(1,35): expected-closing-tag-but-got-eof
   1.188 +#document
   1.189 +| <html>
   1.190 +|   <head>
   1.191 +|   <body>
   1.192 +|     <textarea>
   1.193 +|       "foo<span>bar</span><i>baz"
   1.194 +
   1.195 +#data
   1.196 +<title>foo<span>bar</em><i>baz
   1.197 +#errors
   1.198 +(1,7): expected-doctype-but-got-start-tag
   1.199 +(1,30): expected-named-closing-tag-but-got-eof
   1.200 +#document
   1.201 +| <html>
   1.202 +|   <head>
   1.203 +|     <title>
   1.204 +|       "foo<span>bar</em><i>baz"
   1.205 +|   <body>
   1.206 +
   1.207 +#data
   1.208 +<!DOCTYPE html><textarea>
   1.209 +</textarea>
   1.210 +#errors
   1.211 +#document
   1.212 +| <!DOCTYPE html>
   1.213 +| <html>
   1.214 +|   <head>
   1.215 +|   <body>
   1.216 +|     <textarea>
   1.217 +
   1.218 +#data
   1.219 +<!DOCTYPE html><textarea>
   1.220 +foo</textarea>
   1.221 +#errors
   1.222 +#document
   1.223 +| <!DOCTYPE html>
   1.224 +| <html>
   1.225 +|   <head>
   1.226 +|   <body>
   1.227 +|     <textarea>
   1.228 +|       "foo"
   1.229 +
   1.230 +#data
   1.231 +<!DOCTYPE html><textarea>
   1.232 +
   1.233 +foo</textarea>
   1.234 +#errors
   1.235 +#document
   1.236 +| <!DOCTYPE html>
   1.237 +| <html>
   1.238 +|   <head>
   1.239 +|   <body>
   1.240 +|     <textarea>
   1.241 +|       "
   1.242 +foo"
   1.243 +
   1.244 +#data
   1.245 +<!DOCTYPE html><html><head></head><body><ul><li><div><p><li></ul></body></html>
   1.246 +#errors
   1.247 +(1,60): end-tag-too-early
   1.248 +#document
   1.249 +| <!DOCTYPE html>
   1.250 +| <html>
   1.251 +|   <head>
   1.252 +|   <body>
   1.253 +|     <ul>
   1.254 +|       <li>
   1.255 +|         <div>
   1.256 +|           <p>
   1.257 +|       <li>
   1.258 +
   1.259 +#data
   1.260 +<!doctype html><nobr><nobr><nobr>
   1.261 +#errors
   1.262 +(1,27): unexpected-start-tag-implies-end-tag
   1.263 +(1,33): unexpected-start-tag-implies-end-tag
   1.264 +(1,33): expected-closing-tag-but-got-eof
   1.265 +#document
   1.266 +| <!DOCTYPE html>
   1.267 +| <html>
   1.268 +|   <head>
   1.269 +|   <body>
   1.270 +|     <nobr>
   1.271 +|     <nobr>
   1.272 +|     <nobr>
   1.273 +
   1.274 +#data
   1.275 +<!doctype html><nobr><nobr></nobr><nobr>
   1.276 +#errors
   1.277 +(1,27): unexpected-start-tag-implies-end-tag
   1.278 +(1,40): expected-closing-tag-but-got-eof
   1.279 +#document
   1.280 +| <!DOCTYPE html>
   1.281 +| <html>
   1.282 +|   <head>
   1.283 +|   <body>
   1.284 +|     <nobr>
   1.285 +|     <nobr>
   1.286 +|     <nobr>
   1.287 +
   1.288 +#data
   1.289 +<!doctype html><html><body><p><table></table></body></html>
   1.290 +#errors
   1.291 +Not known
   1.292 +#document
   1.293 +| <!DOCTYPE html>
   1.294 +| <html>
   1.295 +|   <head>
   1.296 +|   <body>
   1.297 +|     <p>
   1.298 +|     <table>
   1.299 +
   1.300 +#data
   1.301 +<p><table></table>
   1.302 +#errors
   1.303 +(1,3): expected-doctype-but-got-start-tag
   1.304 +#document
   1.305 +| <html>
   1.306 +|   <head>
   1.307 +|   <body>
   1.308 +|     <p>
   1.309 +|       <table>

mercurial