parser/htmlparser/tests/mochitest/html5lib_tree_construction/tests15.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/tests15.dat	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,216 @@
     1.4 +#data
     1.5 +<!DOCTYPE html><p><b><i><u></p> <p>X
     1.6 +#errors
     1.7 +(1,31): unexpected-end-tag
     1.8 +(1,36): expected-closing-tag-but-got-eof
     1.9 +#document
    1.10 +| <!DOCTYPE html>
    1.11 +| <html>
    1.12 +|   <head>
    1.13 +|   <body>
    1.14 +|     <p>
    1.15 +|       <b>
    1.16 +|         <i>
    1.17 +|           <u>
    1.18 +|     <b>
    1.19 +|       <i>
    1.20 +|         <u>
    1.21 +|           " "
    1.22 +|           <p>
    1.23 +|             "X"
    1.24 +
    1.25 +#data
    1.26 +<p><b><i><u></p>
    1.27 +<p>X
    1.28 +#errors
    1.29 +(1,3): expected-doctype-but-got-start-tag
    1.30 +(1,16): unexpected-end-tag
    1.31 +(2,4): expected-closing-tag-but-got-eof
    1.32 +#document
    1.33 +| <html>
    1.34 +|   <head>
    1.35 +|   <body>
    1.36 +|     <p>
    1.37 +|       <b>
    1.38 +|         <i>
    1.39 +|           <u>
    1.40 +|     <b>
    1.41 +|       <i>
    1.42 +|         <u>
    1.43 +|           "
    1.44 +"
    1.45 +|           <p>
    1.46 +|             "X"
    1.47 +
    1.48 +#data
    1.49 +<!doctype html></html> <head>
    1.50 +#errors
    1.51 +(1,29): expected-eof-but-got-start-tag
    1.52 +(1,29): unexpected-start-tag-ignored
    1.53 +#document
    1.54 +| <!DOCTYPE html>
    1.55 +| <html>
    1.56 +|   <head>
    1.57 +|   <body>
    1.58 +|     " "
    1.59 +
    1.60 +#data
    1.61 +<!doctype html></body><meta>
    1.62 +#errors
    1.63 +(1,28): unexpected-start-tag-after-body
    1.64 +#document
    1.65 +| <!DOCTYPE html>
    1.66 +| <html>
    1.67 +|   <head>
    1.68 +|   <body>
    1.69 +|     <meta>
    1.70 +
    1.71 +#data
    1.72 +<html></html><!-- foo -->
    1.73 +#errors
    1.74 +(1,6): expected-doctype-but-got-start-tag
    1.75 +#document
    1.76 +| <html>
    1.77 +|   <head>
    1.78 +|   <body>
    1.79 +| <!--  foo  -->
    1.80 +
    1.81 +#data
    1.82 +<!doctype html></body><title>X</title>
    1.83 +#errors
    1.84 +(1,29): unexpected-start-tag-after-body
    1.85 +#document
    1.86 +| <!DOCTYPE html>
    1.87 +| <html>
    1.88 +|   <head>
    1.89 +|   <body>
    1.90 +|     <title>
    1.91 +|       "X"
    1.92 +
    1.93 +#data
    1.94 +<!doctype html><table> X<meta></table>
    1.95 +#errors
    1.96 +(1,23): foster-parenting-character
    1.97 +(1,24): foster-parenting-character
    1.98 +(1,30): foster-parenting-start-character
    1.99 +#document
   1.100 +| <!DOCTYPE html>
   1.101 +| <html>
   1.102 +|   <head>
   1.103 +|   <body>
   1.104 +|     " X"
   1.105 +|     <meta>
   1.106 +|     <table>
   1.107 +
   1.108 +#data
   1.109 +<!doctype html><table> x</table>
   1.110 +#errors
   1.111 +(1,23): foster-parenting-character
   1.112 +(1,24): foster-parenting-character
   1.113 +#document
   1.114 +| <!DOCTYPE html>
   1.115 +| <html>
   1.116 +|   <head>
   1.117 +|   <body>
   1.118 +|     " x"
   1.119 +|     <table>
   1.120 +
   1.121 +#data
   1.122 +<!doctype html><table> x </table>
   1.123 +#errors
   1.124 +(1,23): foster-parenting-character
   1.125 +(1,24): foster-parenting-character
   1.126 +(1,25): foster-parenting-character
   1.127 +#document
   1.128 +| <!DOCTYPE html>
   1.129 +| <html>
   1.130 +|   <head>
   1.131 +|   <body>
   1.132 +|     " x "
   1.133 +|     <table>
   1.134 +
   1.135 +#data
   1.136 +<!doctype html><table><tr> x</table>
   1.137 +#errors
   1.138 +(1,27): foster-parenting-character
   1.139 +(1,28): foster-parenting-character
   1.140 +#document
   1.141 +| <!DOCTYPE html>
   1.142 +| <html>
   1.143 +|   <head>
   1.144 +|   <body>
   1.145 +|     " x"
   1.146 +|     <table>
   1.147 +|       <tbody>
   1.148 +|         <tr>
   1.149 +
   1.150 +#data
   1.151 +<!doctype html><table>X<style> <tr>x </style> </table>
   1.152 +#errors
   1.153 +(1,23): foster-parenting-character
   1.154 +#document
   1.155 +| <!DOCTYPE html>
   1.156 +| <html>
   1.157 +|   <head>
   1.158 +|   <body>
   1.159 +|     "X"
   1.160 +|     <table>
   1.161 +|       <style>
   1.162 +|         " <tr>x "
   1.163 +|       " "
   1.164 +
   1.165 +#data
   1.166 +<!doctype html><div><table><a>foo</a> <tr><td>bar</td> </tr></table></div>
   1.167 +#errors
   1.168 +(1,30): foster-parenting-start-tag
   1.169 +(1,31): foster-parenting-character
   1.170 +(1,32): foster-parenting-character
   1.171 +(1,33): foster-parenting-character
   1.172 +(1,37): foster-parenting-end-tag
   1.173 +#document
   1.174 +| <!DOCTYPE html>
   1.175 +| <html>
   1.176 +|   <head>
   1.177 +|   <body>
   1.178 +|     <div>
   1.179 +|       <a>
   1.180 +|         "foo"
   1.181 +|       <table>
   1.182 +|         " "
   1.183 +|         <tbody>
   1.184 +|           <tr>
   1.185 +|             <td>
   1.186 +|               "bar"
   1.187 +|             " "
   1.188 +
   1.189 +#data
   1.190 +<frame></frame></frame><frameset><frame><frameset><frame></frameset><noframes></frameset><noframes>
   1.191 +#errors
   1.192 +(1,7): expected-doctype-but-got-start-tag
   1.193 +(1,7): unexpected-start-tag-ignored
   1.194 +(1,15): unexpected-end-tag
   1.195 +(1,23): unexpected-end-tag
   1.196 +(1,33): unexpected-start-tag
   1.197 +(1,99): expected-named-closing-tag-but-got-eof
   1.198 +(1,99): eof-in-frameset
   1.199 +#document
   1.200 +| <html>
   1.201 +|   <head>
   1.202 +|   <frameset>
   1.203 +|     <frame>
   1.204 +|     <frameset>
   1.205 +|       <frame>
   1.206 +|     <noframes>
   1.207 +|       "</frameset><noframes>"
   1.208 +
   1.209 +#data
   1.210 +<!DOCTYPE html><object></html>
   1.211 +#errors
   1.212 +(1,30): expected-body-in-scope
   1.213 +(1,30): expected-closing-tag-but-got-eof
   1.214 +#document
   1.215 +| <!DOCTYPE html>
   1.216 +| <html>
   1.217 +|   <head>
   1.218 +|   <body>
   1.219 +|     <object>

mercurial