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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 #data
michael@0 2 <b><p>Bold </b> Not bold</p>
michael@0 3 Also not bold.
michael@0 4 #errors
michael@0 5 (1,3): expected-doctype-but-got-start-tag
michael@0 6 (1,15): adoption-agency-1.3
michael@0 7 #document
michael@0 8 | <html>
michael@0 9 | <head>
michael@0 10 | <body>
michael@0 11 | <b>
michael@0 12 | <p>
michael@0 13 | <b>
michael@0 14 | "Bold "
michael@0 15 | " Not bold"
michael@0 16 | "
michael@0 17 Also not bold."
michael@0 18
michael@0 19 #data
michael@0 20 <html>
michael@0 21 <font color=red><i>Italic and Red<p>Italic and Red </font> Just italic.</p> Italic only.</i> Plain
michael@0 22 <p>I should not be red. <font color=red>Red. <i>Italic and red.</p>
michael@0 23 <p>Italic and red. </i> Red.</font> I should not be red.</p>
michael@0 24 <b>Bold <i>Bold and italic</b> Only Italic </i> Plain
michael@0 25 #errors
michael@0 26 (1,6): expected-doctype-but-got-start-tag
michael@0 27 (2,58): adoption-agency-1.3
michael@0 28 (3,67): unexpected-end-tag
michael@0 29 (4,23): adoption-agency-1.3
michael@0 30 (4,35): adoption-agency-1.3
michael@0 31 (5,30): adoption-agency-1.3
michael@0 32 #document
michael@0 33 | <html>
michael@0 34 | <head>
michael@0 35 | <body>
michael@0 36 | <font>
michael@0 37 | color="red"
michael@0 38 | <i>
michael@0 39 | "Italic and Red"
michael@0 40 | <i>
michael@0 41 | <p>
michael@0 42 | <font>
michael@0 43 | color="red"
michael@0 44 | "Italic and Red "
michael@0 45 | " Just italic."
michael@0 46 | " Italic only."
michael@0 47 | " Plain
michael@0 48 "
michael@0 49 | <p>
michael@0 50 | "I should not be red. "
michael@0 51 | <font>
michael@0 52 | color="red"
michael@0 53 | "Red. "
michael@0 54 | <i>
michael@0 55 | "Italic and red."
michael@0 56 | <font>
michael@0 57 | color="red"
michael@0 58 | <i>
michael@0 59 | "
michael@0 60 "
michael@0 61 | <p>
michael@0 62 | <font>
michael@0 63 | color="red"
michael@0 64 | <i>
michael@0 65 | "Italic and red. "
michael@0 66 | " Red."
michael@0 67 | " I should not be red."
michael@0 68 | "
michael@0 69 "
michael@0 70 | <b>
michael@0 71 | "Bold "
michael@0 72 | <i>
michael@0 73 | "Bold and italic"
michael@0 74 | <i>
michael@0 75 | " Only Italic "
michael@0 76 | " Plain"
michael@0 77
michael@0 78 #data
michael@0 79 <html><body>
michael@0 80 <p><font size="7">First paragraph.</p>
michael@0 81 <p>Second paragraph.</p></font>
michael@0 82 <b><p><i>Bold and Italic</b> Italic</p>
michael@0 83 #errors
michael@0 84 (1,6): expected-doctype-but-got-start-tag
michael@0 85 (2,38): unexpected-end-tag
michael@0 86 (4,28): adoption-agency-1.3
michael@0 87 (4,28): adoption-agency-1.3
michael@0 88 (4,39): unexpected-end-tag
michael@0 89 #document
michael@0 90 | <html>
michael@0 91 | <head>
michael@0 92 | <body>
michael@0 93 | "
michael@0 94 "
michael@0 95 | <p>
michael@0 96 | <font>
michael@0 97 | size="7"
michael@0 98 | "First paragraph."
michael@0 99 | <font>
michael@0 100 | size="7"
michael@0 101 | "
michael@0 102 "
michael@0 103 | <p>
michael@0 104 | "Second paragraph."
michael@0 105 | "
michael@0 106 "
michael@0 107 | <b>
michael@0 108 | <p>
michael@0 109 | <b>
michael@0 110 | <i>
michael@0 111 | "Bold and Italic"
michael@0 112 | <i>
michael@0 113 | " Italic"
michael@0 114
michael@0 115 #data
michael@0 116 <html>
michael@0 117 <dl>
michael@0 118 <dt><b>Boo
michael@0 119 <dd>Goo?
michael@0 120 </dl>
michael@0 121 </html>
michael@0 122 #errors
michael@0 123 (1,6): expected-doctype-but-got-start-tag
michael@0 124 (4,4): end-tag-too-early
michael@0 125 (5,5): end-tag-too-early
michael@0 126 (6,7): expected-one-end-tag-but-got-another
michael@0 127 #document
michael@0 128 | <html>
michael@0 129 | <head>
michael@0 130 | <body>
michael@0 131 | <dl>
michael@0 132 | "
michael@0 133 "
michael@0 134 | <dt>
michael@0 135 | <b>
michael@0 136 | "Boo
michael@0 137 "
michael@0 138 | <dd>
michael@0 139 | <b>
michael@0 140 | "Goo?
michael@0 141 "
michael@0 142 | <b>
michael@0 143 | "
michael@0 144 "
michael@0 145
michael@0 146 #data
michael@0 147 <html><body>
michael@0 148 <label><a><div>Hello<div>World</div></a></label>
michael@0 149 </body></html>
michael@0 150 #errors
michael@0 151 (1,6): expected-doctype-but-got-start-tag
michael@0 152 (2,40): adoption-agency-1.3
michael@0 153 (2,48): unexpected-end-tag
michael@0 154 (3,7): expected-one-end-tag-but-got-another
michael@0 155 #document
michael@0 156 | <html>
michael@0 157 | <head>
michael@0 158 | <body>
michael@0 159 | "
michael@0 160 "
michael@0 161 | <label>
michael@0 162 | <a>
michael@0 163 | <div>
michael@0 164 | <a>
michael@0 165 | "Hello"
michael@0 166 | <div>
michael@0 167 | "World"
michael@0 168 | "
michael@0 169 "
michael@0 170
michael@0 171 #data
michael@0 172 <table><center> <font>a</center> <img> <tr><td> </td> </tr> </table>
michael@0 173 #errors
michael@0 174 (1,7): expected-doctype-but-got-start-tag
michael@0 175 (1,15): foster-parenting-start-tag
michael@0 176 (1,16): foster-parenting-character
michael@0 177 (1,22): foster-parenting-start-tag
michael@0 178 (1,23): foster-parenting-character
michael@0 179 (1,32): foster-parenting-end-tag
michael@0 180 (1,32): end-tag-too-early
michael@0 181 (1,33): foster-parenting-character
michael@0 182 (1,38): foster-parenting-start-tag
michael@0 183 #document
michael@0 184 | <html>
michael@0 185 | <head>
michael@0 186 | <body>
michael@0 187 | <center>
michael@0 188 | " "
michael@0 189 | <font>
michael@0 190 | "a"
michael@0 191 | <font>
michael@0 192 | <img>
michael@0 193 | " "
michael@0 194 | <table>
michael@0 195 | " "
michael@0 196 | <tbody>
michael@0 197 | <tr>
michael@0 198 | <td>
michael@0 199 | " "
michael@0 200 | " "
michael@0 201 | " "
michael@0 202
michael@0 203 #data
michael@0 204 <table><tr><p><a><p>You should see this text.
michael@0 205 #errors
michael@0 206 (1,7): expected-doctype-but-got-start-tag
michael@0 207 (1,14): unexpected-start-tag-implies-table-voodoo
michael@0 208 (1,17): unexpected-start-tag-implies-table-voodoo
michael@0 209 (1,20): unexpected-start-tag-implies-table-voodoo
michael@0 210 (1,20): closing-non-current-p-element
michael@0 211 (1,21): foster-parenting-character
michael@0 212 (1,22): foster-parenting-character
michael@0 213 (1,23): foster-parenting-character
michael@0 214 (1,24): foster-parenting-character
michael@0 215 (1,25): foster-parenting-character
michael@0 216 (1,26): foster-parenting-character
michael@0 217 (1,27): foster-parenting-character
michael@0 218 (1,28): foster-parenting-character
michael@0 219 (1,29): foster-parenting-character
michael@0 220 (1,30): foster-parenting-character
michael@0 221 (1,31): foster-parenting-character
michael@0 222 (1,32): foster-parenting-character
michael@0 223 (1,33): foster-parenting-character
michael@0 224 (1,34): foster-parenting-character
michael@0 225 (1,35): foster-parenting-character
michael@0 226 (1,36): foster-parenting-character
michael@0 227 (1,37): foster-parenting-character
michael@0 228 (1,38): foster-parenting-character
michael@0 229 (1,39): foster-parenting-character
michael@0 230 (1,40): foster-parenting-character
michael@0 231 (1,41): foster-parenting-character
michael@0 232 (1,42): foster-parenting-character
michael@0 233 (1,43): foster-parenting-character
michael@0 234 (1,44): foster-parenting-character
michael@0 235 (1,45): foster-parenting-character
michael@0 236 (1,45): eof-in-table
michael@0 237 #document
michael@0 238 | <html>
michael@0 239 | <head>
michael@0 240 | <body>
michael@0 241 | <p>
michael@0 242 | <a>
michael@0 243 | <p>
michael@0 244 | <a>
michael@0 245 | "You should see this text."
michael@0 246 | <table>
michael@0 247 | <tbody>
michael@0 248 | <tr>
michael@0 249
michael@0 250 #data
michael@0 251 <TABLE>
michael@0 252 <TR>
michael@0 253 <CENTER><CENTER><TD></TD></TR><TR>
michael@0 254 <FONT>
michael@0 255 <TABLE><tr></tr></TABLE>
michael@0 256 </P>
michael@0 257 <a></font><font></a>
michael@0 258 This page contains an insanely badly-nested tag sequence.
michael@0 259 #errors
michael@0 260 (1,7): expected-doctype-but-got-start-tag
michael@0 261 (3,8): unexpected-start-tag-implies-table-voodoo
michael@0 262 (3,16): unexpected-start-tag-implies-table-voodoo
michael@0 263 (4,6): unexpected-start-tag-implies-table-voodoo
michael@0 264 (5,7): unexpected-start-tag-implies-end-tag
michael@0 265 (7,10): adoption-agency-1.3
michael@0 266 (7,20): adoption-agency-1.3
michael@0 267 (8,57): expected-closing-tag-but-got-eof
michael@0 268 #document
michael@0 269 | <html>
michael@0 270 | <head>
michael@0 271 | <body>
michael@0 272 | <center>
michael@0 273 | <center>
michael@0 274 | <font>
michael@0 275 | "
michael@0 276 "
michael@0 277 | <table>
michael@0 278 | "
michael@0 279 "
michael@0 280 | <tbody>
michael@0 281 | <tr>
michael@0 282 | "
michael@0 283 "
michael@0 284 | <td>
michael@0 285 | <tr>
michael@0 286 | "
michael@0 287 "
michael@0 288 | <table>
michael@0 289 | <tbody>
michael@0 290 | <tr>
michael@0 291 | <font>
michael@0 292 | "
michael@0 293 "
michael@0 294 | <p>
michael@0 295 | "
michael@0 296 "
michael@0 297 | <a>
michael@0 298 | <a>
michael@0 299 | <font>
michael@0 300 | <font>
michael@0 301 | "
michael@0 302 This page contains an insanely badly-nested tag sequence."
michael@0 303
michael@0 304 #data
michael@0 305 <html>
michael@0 306 <body>
michael@0 307 <b><nobr><div>This text is in a div inside a nobr</nobr>More text that should not be in the nobr, i.e., the
michael@0 308 nobr should have closed the div inside it implicitly. </b><pre>A pre tag outside everything else.</pre>
michael@0 309 </body>
michael@0 310 </html>
michael@0 311 #errors
michael@0 312 (1,6): expected-doctype-but-got-start-tag
michael@0 313 (3,56): adoption-agency-1.3
michael@0 314 (4,58): adoption-agency-1.3
michael@0 315 (5,7): expected-one-end-tag-but-got-another
michael@0 316 #document
michael@0 317 | <html>
michael@0 318 | <head>
michael@0 319 | <body>
michael@0 320 | "
michael@0 321 "
michael@0 322 | <b>
michael@0 323 | <nobr>
michael@0 324 | <div>
michael@0 325 | <b>
michael@0 326 | <nobr>
michael@0 327 | "This text is in a div inside a nobr"
michael@0 328 | "More text that should not be in the nobr, i.e., the
michael@0 329 nobr should have closed the div inside it implicitly. "
michael@0 330 | <pre>
michael@0 331 | "A pre tag outside everything else."
michael@0 332 | "
michael@0 333
michael@0 334 "

mercurial