1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/parser/htmlparser/tests/mochitest/html5lib_tree_construction/tests5.dat Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,197 @@ 1.4 +#data 1.5 +<style> <!-- </style>x 1.6 +#errors 1.7 +(1,7): expected-doctype-but-got-start-tag 1.8 +#document 1.9 +| <html> 1.10 +| <head> 1.11 +| <style> 1.12 +| " <!-- " 1.13 +| <body> 1.14 +| "x" 1.15 + 1.16 +#data 1.17 +<style> <!-- </style> --> </style>x 1.18 +#errors 1.19 +(1,7): expected-doctype-but-got-start-tag 1.20 +(1,34): unexpected-end-tag 1.21 +#document 1.22 +| <html> 1.23 +| <head> 1.24 +| <style> 1.25 +| " <!-- " 1.26 +| " " 1.27 +| <body> 1.28 +| "--> x" 1.29 + 1.30 +#data 1.31 +<style> <!--> </style>x 1.32 +#errors 1.33 +(1,7): expected-doctype-but-got-start-tag 1.34 +#document 1.35 +| <html> 1.36 +| <head> 1.37 +| <style> 1.38 +| " <!--> " 1.39 +| <body> 1.40 +| "x" 1.41 + 1.42 +#data 1.43 +<style> <!---> </style>x 1.44 +#errors 1.45 +(1,7): expected-doctype-but-got-start-tag 1.46 +#document 1.47 +| <html> 1.48 +| <head> 1.49 +| <style> 1.50 +| " <!---> " 1.51 +| <body> 1.52 +| "x" 1.53 + 1.54 +#data 1.55 +<iframe> <!---> </iframe>x 1.56 +#errors 1.57 +(1,8): expected-doctype-but-got-start-tag 1.58 +#document 1.59 +| <html> 1.60 +| <head> 1.61 +| <body> 1.62 +| <iframe> 1.63 +| " <!---> " 1.64 +| "x" 1.65 + 1.66 +#data 1.67 +<iframe> <!--- </iframe>->x</iframe> --> </iframe>x 1.68 +#errors 1.69 +(1,8): expected-doctype-but-got-start-tag 1.70 +(1,36): unexpected-end-tag 1.71 +(1,50): unexpected-end-tag 1.72 +#document 1.73 +| <html> 1.74 +| <head> 1.75 +| <body> 1.76 +| <iframe> 1.77 +| " <!--- " 1.78 +| "->x --> x" 1.79 + 1.80 +#data 1.81 +<script> <!-- </script> --> </script>x 1.82 +#errors 1.83 +(1,8): expected-doctype-but-got-start-tag 1.84 +(1,37): unexpected-end-tag 1.85 +#document 1.86 +| <html> 1.87 +| <head> 1.88 +| <script> 1.89 +| " <!-- " 1.90 +| " " 1.91 +| <body> 1.92 +| "--> x" 1.93 + 1.94 +#data 1.95 +<title> <!-- </title> --> </title>x 1.96 +#errors 1.97 +(1,7): expected-doctype-but-got-start-tag 1.98 +(1,34): unexpected-end-tag 1.99 +#document 1.100 +| <html> 1.101 +| <head> 1.102 +| <title> 1.103 +| " <!-- " 1.104 +| " " 1.105 +| <body> 1.106 +| "--> x" 1.107 + 1.108 +#data 1.109 +<textarea> <!--- </textarea>->x</textarea> --> </textarea>x 1.110 +#errors 1.111 +(1,10): expected-doctype-but-got-start-tag 1.112 +(1,42): unexpected-end-tag 1.113 +(1,58): unexpected-end-tag 1.114 +#document 1.115 +| <html> 1.116 +| <head> 1.117 +| <body> 1.118 +| <textarea> 1.119 +| " <!--- " 1.120 +| "->x --> x" 1.121 + 1.122 +#data 1.123 +<style> <!</-- </style>x 1.124 +#errors 1.125 +(1,7): expected-doctype-but-got-start-tag 1.126 +#document 1.127 +| <html> 1.128 +| <head> 1.129 +| <style> 1.130 +| " <!</-- " 1.131 +| <body> 1.132 +| "x" 1.133 + 1.134 +#data 1.135 +<p><xmp></xmp> 1.136 +#errors 1.137 +(1,3): expected-doctype-but-got-start-tag 1.138 +#document 1.139 +| <html> 1.140 +| <head> 1.141 +| <body> 1.142 +| <p> 1.143 +| <xmp> 1.144 + 1.145 +#data 1.146 +<xmp> <!-- > --> </xmp> 1.147 +#errors 1.148 +(1,5): expected-doctype-but-got-start-tag 1.149 +#document 1.150 +| <html> 1.151 +| <head> 1.152 +| <body> 1.153 +| <xmp> 1.154 +| " <!-- > --> " 1.155 + 1.156 +#data 1.157 +<title>&</title> 1.158 +#errors 1.159 +(1,7): expected-doctype-but-got-start-tag 1.160 +#document 1.161 +| <html> 1.162 +| <head> 1.163 +| <title> 1.164 +| "&" 1.165 +| <body> 1.166 + 1.167 +#data 1.168 +<title><!--&--></title> 1.169 +#errors 1.170 +(1,7): expected-doctype-but-got-start-tag 1.171 +#document 1.172 +| <html> 1.173 +| <head> 1.174 +| <title> 1.175 +| "<!--&-->" 1.176 +| <body> 1.177 + 1.178 +#data 1.179 +<title><!--</title> 1.180 +#errors 1.181 +(1,7): expected-doctype-but-got-start-tag 1.182 +#document 1.183 +| <html> 1.184 +| <head> 1.185 +| <title> 1.186 +| "<!--" 1.187 +| <body> 1.188 + 1.189 +#data 1.190 +<noscript><!--</noscript>--></noscript> 1.191 +#errors 1.192 +(1,10): expected-doctype-but-got-start-tag 1.193 +(1,39): unexpected-end-tag 1.194 +#document 1.195 +| <html> 1.196 +| <head> 1.197 +| <noscript> 1.198 +| "<!--" 1.199 +| <body> 1.200 +| "-->"