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.

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

mercurial