1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/parser/htmlparser/tests/mochitest/html5lib_tree_construction/html5test-com.dat Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,291 @@ 1.4 +#data 1.5 +<div<div> 1.6 +#errors 1.7 +(1,9): expected-doctype-but-got-start-tag 1.8 +(1,9): expected-closing-tag-but-got-eof 1.9 +#document 1.10 +| <html> 1.11 +| <head> 1.12 +| <body> 1.13 +| <div<div> 1.14 + 1.15 +#data 1.16 +<div foo<bar=''> 1.17 +#errors 1.18 +(1,9): invalid-character-in-attribute-name 1.19 +(1,16): expected-doctype-but-got-start-tag 1.20 +(1,16): expected-closing-tag-but-got-eof 1.21 +#document 1.22 +| <html> 1.23 +| <head> 1.24 +| <body> 1.25 +| <div> 1.26 +| foo<bar="" 1.27 + 1.28 +#data 1.29 +<div foo=`bar`> 1.30 +#errors 1.31 +(1,10): equals-in-unquoted-attribute-value 1.32 +(1,14): unexpected-character-in-unquoted-attribute-value 1.33 +(1,15): expected-doctype-but-got-start-tag 1.34 +(1,15): expected-closing-tag-but-got-eof 1.35 +#document 1.36 +| <html> 1.37 +| <head> 1.38 +| <body> 1.39 +| <div> 1.40 +| foo="`bar`" 1.41 + 1.42 +#data 1.43 +<div \"foo=''> 1.44 +#errors 1.45 +(1,7): invalid-character-in-attribute-name 1.46 +(1,14): expected-doctype-but-got-start-tag 1.47 +(1,14): expected-closing-tag-but-got-eof 1.48 +#document 1.49 +| <html> 1.50 +| <head> 1.51 +| <body> 1.52 +| <div> 1.53 +| \"foo="" 1.54 + 1.55 +#data 1.56 +<a href='\nbar'></a> 1.57 +#errors 1.58 +(1,16): expected-doctype-but-got-start-tag 1.59 +#document 1.60 +| <html> 1.61 +| <head> 1.62 +| <body> 1.63 +| <a> 1.64 +| href="\nbar" 1.65 + 1.66 +#data 1.67 +<!DOCTYPE html> 1.68 +#errors 1.69 +#document 1.70 +| <!DOCTYPE html> 1.71 +| <html> 1.72 +| <head> 1.73 +| <body> 1.74 + 1.75 +#data 1.76 +⟨⟩ 1.77 +#errors 1.78 +(1,6): expected-doctype-but-got-chars 1.79 +#document 1.80 +| <html> 1.81 +| <head> 1.82 +| <body> 1.83 +| "⟨⟩" 1.84 + 1.85 +#data 1.86 +' 1.87 +#errors 1.88 +(1,6): expected-doctype-but-got-chars 1.89 +#document 1.90 +| <html> 1.91 +| <head> 1.92 +| <body> 1.93 +| "'" 1.94 + 1.95 +#data 1.96 +ⅈ 1.97 +#errors 1.98 +(1,12): expected-doctype-but-got-chars 1.99 +#document 1.100 +| <html> 1.101 +| <head> 1.102 +| <body> 1.103 +| "ⅈ" 1.104 + 1.105 +#data 1.106 +𝕂 1.107 +#errors 1.108 +(1,6): expected-doctype-but-got-chars 1.109 +#document 1.110 +| <html> 1.111 +| <head> 1.112 +| <body> 1.113 +| "𝕂" 1.114 + 1.115 +#data 1.116 +∉ 1.117 +#errors 1.118 +(1,9): expected-doctype-but-got-chars 1.119 +#document 1.120 +| <html> 1.121 +| <head> 1.122 +| <body> 1.123 +| "∉" 1.124 + 1.125 +#data 1.126 +<?import namespace="foo" implementation="#bar"> 1.127 +#errors 1.128 +(1,1): expected-tag-name-but-got-question-mark 1.129 +(1,47): expected-doctype-but-got-eof 1.130 +#document 1.131 +| <!-- ?import namespace="foo" implementation="#bar" --> 1.132 +| <html> 1.133 +| <head> 1.134 +| <body> 1.135 + 1.136 +#data 1.137 +<!--foo--bar--> 1.138 +#errors 1.139 +(1,10): unexpected-char-in-comment 1.140 +(1,15): expected-doctype-but-got-eof 1.141 +#document 1.142 +| <!-- foo--bar --> 1.143 +| <html> 1.144 +| <head> 1.145 +| <body> 1.146 + 1.147 +#data 1.148 +<![CDATA[x]]> 1.149 +#errors 1.150 +(1,2): expected-dashes-or-doctype 1.151 +(1,13): expected-doctype-but-got-eof 1.152 +#document 1.153 +| <!-- [CDATA[x]] --> 1.154 +| <html> 1.155 +| <head> 1.156 +| <body> 1.157 + 1.158 +#data 1.159 +<textarea><!--</textarea>--></textarea> 1.160 +#errors 1.161 +(1,10): expected-doctype-but-got-start-tag 1.162 +(1,39): unexpected-end-tag 1.163 +#document 1.164 +| <html> 1.165 +| <head> 1.166 +| <body> 1.167 +| <textarea> 1.168 +| "<!--" 1.169 +| "-->" 1.170 + 1.171 +#data 1.172 +<textarea><!--</textarea>--> 1.173 +#errors 1.174 +(1,10): expected-doctype-but-got-start-tag 1.175 +#document 1.176 +| <html> 1.177 +| <head> 1.178 +| <body> 1.179 +| <textarea> 1.180 +| "<!--" 1.181 +| "-->" 1.182 + 1.183 +#data 1.184 +<style><!--</style>--></style> 1.185 +#errors 1.186 +(1,7): expected-doctype-but-got-start-tag 1.187 +(1,30): unexpected-end-tag 1.188 +#document 1.189 +| <html> 1.190 +| <head> 1.191 +| <style> 1.192 +| "<!--" 1.193 +| <body> 1.194 +| "-->" 1.195 + 1.196 +#data 1.197 +<style><!--</style>--> 1.198 +#errors 1.199 +(1,7): expected-doctype-but-got-start-tag 1.200 +#document 1.201 +| <html> 1.202 +| <head> 1.203 +| <style> 1.204 +| "<!--" 1.205 +| <body> 1.206 +| "-->" 1.207 + 1.208 +#data 1.209 +<ul><li>A </li> <li>B</li></ul> 1.210 +#errors 1.211 +(1,4): expected-doctype-but-got-start-tag 1.212 +#document 1.213 +| <html> 1.214 +| <head> 1.215 +| <body> 1.216 +| <ul> 1.217 +| <li> 1.218 +| "A " 1.219 +| " " 1.220 +| <li> 1.221 +| "B" 1.222 + 1.223 +#data 1.224 +<table><form><input type=hidden><input></form><div></div></table> 1.225 +#errors 1.226 +(1,7): expected-doctype-but-got-start-tag 1.227 +(1,13): unexpected-form-in-table 1.228 +(1,32): unexpected-hidden-input-in-table 1.229 +(1,39): unexpected-start-tag-implies-table-voodoo 1.230 +(1,46): unexpected-end-tag-implies-table-voodoo 1.231 +(1,46): unexpected-end-tag 1.232 +(1,51): unexpected-start-tag-implies-table-voodoo 1.233 +(1,57): unexpected-end-tag-implies-table-voodoo 1.234 +#document 1.235 +| <html> 1.236 +| <head> 1.237 +| <body> 1.238 +| <input> 1.239 +| <div> 1.240 +| <table> 1.241 +| <form> 1.242 +| <input> 1.243 +| type="hidden" 1.244 + 1.245 +#data 1.246 +<i>A<b>B<p></i>C</b>D 1.247 +#errors 1.248 +(1,3): expected-doctype-but-got-start-tag 1.249 +(1,15): adoption-agency-1.3 1.250 +(1,20): adoption-agency-1.3 1.251 +#document 1.252 +| <html> 1.253 +| <head> 1.254 +| <body> 1.255 +| <i> 1.256 +| "A" 1.257 +| <b> 1.258 +| "B" 1.259 +| <b> 1.260 +| <p> 1.261 +| <b> 1.262 +| <i> 1.263 +| "C" 1.264 +| "D" 1.265 + 1.266 +#data 1.267 +<div></div> 1.268 +#errors 1.269 +(1,5): expected-doctype-but-got-start-tag 1.270 +#document 1.271 +| <html> 1.272 +| <head> 1.273 +| <body> 1.274 +| <div> 1.275 + 1.276 +#data 1.277 +<svg></svg> 1.278 +#errors 1.279 +(1,5): expected-doctype-but-got-start-tag 1.280 +#document 1.281 +| <html> 1.282 +| <head> 1.283 +| <body> 1.284 +| <svg svg> 1.285 + 1.286 +#data 1.287 +<math></math> 1.288 +#errors 1.289 +(1,6): expected-doctype-but-got-start-tag 1.290 +#document 1.291 +| <html> 1.292 +| <head> 1.293 +| <body> 1.294 +| <math math>