parser/htmlparser/tests/mochitest/html5lib_tree_construction/webkit01.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 Test
     3 #errors
     4 (1,4): expected-doctype-but-got-chars
     5 #document
     6 | <html>
     7 |   <head>
     8 |   <body>
     9 |     "Test"
    11 #data
    12 <div></div>
    13 #errors
    14 (1,5): expected-doctype-but-got-start-tag
    15 #document
    16 | <html>
    17 |   <head>
    18 |   <body>
    19 |     <div>
    21 #data
    22 <div>Test</div>
    23 #errors
    24 (1,5): expected-doctype-but-got-start-tag
    25 #document
    26 | <html>
    27 |   <head>
    28 |   <body>
    29 |     <div>
    30 |       "Test"
    32 #data
    33 <di
    34 #errors
    35 (1,3): eof-in-tag-name
    36 (1,3): expected-doctype-but-got-eof
    37 #document
    38 | <html>
    39 |   <head>
    40 |   <body>
    42 #data
    43 <div>Hello</div>
    44 <script>
    45 console.log("PASS");
    46 </script>
    47 <div>Bye</div>
    48 #errors
    49 (1,5): expected-doctype-but-got-start-tag
    50 #document
    51 | <html>
    52 |   <head>
    53 |   <body>
    54 |     <div>
    55 |       "Hello"
    56 |     "
    57 "
    58 |     <script>
    59 |       "
    60 console.log("PASS");
    61 "
    62 |     "
    63 "
    64 |     <div>
    65 |       "Bye"
    67 #data
    68 <div foo="bar">Hello</div>
    69 #errors
    70 (1,15): expected-doctype-but-got-start-tag
    71 #document
    72 | <html>
    73 |   <head>
    74 |   <body>
    75 |     <div>
    76 |       foo="bar"
    77 |       "Hello"
    79 #data
    80 <div>Hello</div>
    81 <script>
    82 console.log("FOO<span>BAR</span>BAZ");
    83 </script>
    84 <div>Bye</div>
    85 #errors
    86 (1,5): expected-doctype-but-got-start-tag
    87 #document
    88 | <html>
    89 |   <head>
    90 |   <body>
    91 |     <div>
    92 |       "Hello"
    93 |     "
    94 "
    95 |     <script>
    96 |       "
    97 console.log("FOO<span>BAR</span>BAZ");
    98 "
    99 |     "
   100 "
   101 |     <div>
   102 |       "Bye"
   104 #data
   105 <foo bar="baz"></foo><potato quack="duck"></potato>
   106 #errors
   107 (1,15): expected-doctype-but-got-start-tag
   108 #document
   109 | <html>
   110 |   <head>
   111 |   <body>
   112 |     <foo>
   113 |       bar="baz"
   114 |     <potato>
   115 |       quack="duck"
   117 #data
   118 <foo bar="baz"><potato quack="duck"></potato></foo>
   119 #errors
   120 (1,15): expected-doctype-but-got-start-tag
   121 #document
   122 | <html>
   123 |   <head>
   124 |   <body>
   125 |     <foo>
   126 |       bar="baz"
   127 |       <potato>
   128 |         quack="duck"
   130 #data
   131 <foo></foo bar="baz"><potato></potato quack="duck">
   132 #errors
   133 (1,5): expected-doctype-but-got-start-tag
   134 (1,21): attributes-in-end-tag
   135 (1,51): attributes-in-end-tag
   136 #document
   137 | <html>
   138 |   <head>
   139 |   <body>
   140 |     <foo>
   141 |     <potato>
   143 #data
   144 </ tttt>
   145 #errors
   146 (1,2): expected-closing-tag-but-got-char
   147 (1,8): expected-doctype-but-got-eof
   148 #document
   149 | <!--  tttt -->
   150 | <html>
   151 |   <head>
   152 |   <body>
   154 #data
   155 <div FOO ><img><img></div>
   156 #errors
   157 (1,10): expected-doctype-but-got-start-tag
   158 #document
   159 | <html>
   160 |   <head>
   161 |   <body>
   162 |     <div>
   163 |       foo=""
   164 |       <img>
   165 |       <img>
   167 #data
   168 <p>Test</p<p>Test2</p>
   169 #errors
   170 (1,3): expected-doctype-but-got-start-tag
   171 (1,13): unexpected-end-tag
   172 #document
   173 | <html>
   174 |   <head>
   175 |   <body>
   176 |     <p>
   177 |       "TestTest2"
   179 #data
   180 <rdar://problem/6869687>
   181 #errors
   182 (1,7): unexpected-character-after-solidus-in-tag
   183 (1,8): unexpected-character-after-solidus-in-tag
   184 (1,16): unexpected-character-after-solidus-in-tag
   185 (1,24): expected-doctype-but-got-start-tag
   186 (1,24): expected-closing-tag-but-got-eof
   187 #document
   188 | <html>
   189 |   <head>
   190 |   <body>
   191 |     <rdar:>
   192 |       6869687=""
   193 |       problem=""
   195 #data
   196 <A>test< /A>
   197 #errors
   198 (1,3): expected-doctype-but-got-start-tag
   199 (1,8): expected-tag-name
   200 (1,12): expected-closing-tag-but-got-eof
   201 #document
   202 | <html>
   203 |   <head>
   204 |   <body>
   205 |     <a>
   206 |       "test< /A>"
   208 #data
   209 &lt;
   210 #errors
   211 (1,4): expected-doctype-but-got-chars
   212 #document
   213 | <html>
   214 |   <head>
   215 |   <body>
   216 |     "<"
   218 #data
   219 <body foo='bar'><body foo='baz' yo='mama'>
   220 #errors
   221 (1,16): expected-doctype-but-got-start-tag
   222 (1,42): unexpected-start-tag
   223 #document
   224 | <html>
   225 |   <head>
   226 |   <body>
   227 |     foo="bar"
   228 |     yo="mama"
   230 #data
   231 <body></br foo="bar"></body>
   232 #errors
   233 (1,6): expected-doctype-but-got-start-tag
   234 (1,21): attributes-in-end-tag
   235 (1,21): unexpected-end-tag-treated-as
   236 #document
   237 | <html>
   238 |   <head>
   239 |   <body>
   240 |     <br>
   242 #data
   243 <bdy><br foo="bar"></body>
   244 #errors
   245 (1,5): expected-doctype-but-got-start-tag
   246 (1,26): expected-one-end-tag-but-got-another
   247 #document
   248 | <html>
   249 |   <head>
   250 |   <body>
   251 |     <bdy>
   252 |       <br>
   253 |         foo="bar"
   255 #data
   256 <body></body></br foo="bar">
   257 #errors
   258 (1,6): expected-doctype-but-got-start-tag
   259 (1,28): attributes-in-end-tag
   260 (1,28): unexpected-end-tag-after-body
   261 (1,28): unexpected-end-tag-treated-as
   262 #document
   263 | <html>
   264 |   <head>
   265 |   <body>
   266 |     <br>
   268 #data
   269 <bdy></body><br foo="bar">
   270 #errors
   271 (1,5): expected-doctype-but-got-start-tag
   272 (1,12): expected-one-end-tag-but-got-another
   273 (1,26): unexpected-start-tag-after-body
   274 (1,26): expected-closing-tag-but-got-eof
   275 #document
   276 | <html>
   277 |   <head>
   278 |   <body>
   279 |     <bdy>
   280 |       <br>
   281 |         foo="bar"
   283 #data
   284 <html><body></body></html><!-- Hi there -->
   285 #errors
   286 (1,6): expected-doctype-but-got-start-tag
   287 #document
   288 | <html>
   289 |   <head>
   290 |   <body>
   291 | <!--  Hi there  -->
   293 #data
   294 <html><body></body></html>x<!-- Hi there -->
   295 #errors
   296 (1,6): expected-doctype-but-got-start-tag
   297 (1,27): expected-eof-but-got-char
   298 #document
   299 | <html>
   300 |   <head>
   301 |   <body>
   302 |     "x"
   303 |     <!--  Hi there  -->
   305 #data
   306 <html><body></body></html>x<!-- Hi there --></html><!-- Again -->
   307 #errors
   308 (1,6): expected-doctype-but-got-start-tag
   309 (1,27): expected-eof-but-got-char
   310 #document
   311 | <html>
   312 |   <head>
   313 |   <body>
   314 |     "x"
   315 |     <!--  Hi there  -->
   316 | <!--  Again  -->
   318 #data
   319 <html><body></body></html>x<!-- Hi there --></body></html><!-- Again -->
   320 #errors
   321 (1,6): expected-doctype-but-got-start-tag
   322 (1,27): expected-eof-but-got-char
   323 #document
   324 | <html>
   325 |   <head>
   326 |   <body>
   327 |     "x"
   328 |     <!--  Hi there  -->
   329 | <!--  Again  -->
   331 #data
   332 <html><body><ruby><div><rp>xx</rp></div></ruby></body></html>
   333 #errors
   334 (1,6): expected-doctype-but-got-start-tag
   335 (1,27): XXX-undefined-error
   336 #document
   337 | <html>
   338 |   <head>
   339 |   <body>
   340 |     <ruby>
   341 |       <div>
   342 |         <rp>
   343 |           "xx"
   345 #data
   346 <html><body><ruby><div><rt>xx</rt></div></ruby></body></html>
   347 #errors
   348 (1,6): expected-doctype-but-got-start-tag
   349 (1,27): XXX-undefined-error
   350 #document
   351 | <html>
   352 |   <head>
   353 |   <body>
   354 |     <ruby>
   355 |       <div>
   356 |         <rt>
   357 |           "xx"
   359 #data
   360 <html><frameset><!--1--><noframes>A</noframes><!--2--></frameset><!--3--><noframes>B</noframes><!--4--></html><!--5--><noframes>C</noframes><!--6-->
   361 #errors
   362 (1,6): expected-doctype-but-got-start-tag
   363 #document
   364 | <html>
   365 |   <head>
   366 |   <frameset>
   367 |     <!-- 1 -->
   368 |     <noframes>
   369 |       "A"
   370 |     <!-- 2 -->
   371 |   <!-- 3 -->
   372 |   <noframes>
   373 |     "B"
   374 |   <!-- 4 -->
   375 |   <noframes>
   376 |     "C"
   377 | <!-- 5 -->
   378 | <!-- 6 -->
   380 #data
   381 <select><option>A<select><option>B<select><option>C<select><option>D<select><option>E<select><option>F<select><option>G<select>
   382 #errors
   383 (1,8): expected-doctype-but-got-start-tag
   384 (1,25): unexpected-select-in-select
   385 (1,59): unexpected-select-in-select
   386 (1,93): unexpected-select-in-select
   387 (1,127): unexpected-select-in-select
   388 (1,127): expected-closing-tag-but-got-eof
   389 #document
   390 | <html>
   391 |   <head>
   392 |   <body>
   393 |     <select>
   394 |       <option>
   395 |         "A"
   396 |     <option>
   397 |       "B"
   398 |       <select>
   399 |         <option>
   400 |           "C"
   401 |     <option>
   402 |       "D"
   403 |       <select>
   404 |         <option>
   405 |           "E"
   406 |     <option>
   407 |       "F"
   408 |       <select>
   409 |         <option>
   410 |           "G"
   412 #data
   413 <dd><dd><dt><dt><dd><li><li>
   414 #errors
   415 (1,4): expected-doctype-but-got-start-tag
   416 #document
   417 | <html>
   418 |   <head>
   419 |   <body>
   420 |     <dd>
   421 |     <dd>
   422 |     <dt>
   423 |     <dt>
   424 |     <dd>
   425 |       <li>
   426 |       <li>
   428 #data
   429 <div><b></div><div><nobr>a<nobr>
   430 #errors
   431 (1,5): expected-doctype-but-got-start-tag
   432 (1,14): end-tag-too-early
   433 (1,32): unexpected-start-tag-implies-end-tag
   434 (1,32): expected-closing-tag-but-got-eof
   435 #document
   436 | <html>
   437 |   <head>
   438 |   <body>
   439 |     <div>
   440 |       <b>
   441 |     <div>
   442 |       <b>
   443 |         <nobr>
   444 |           "a"
   445 |         <nobr>
   447 #data
   448 <head></head>
   449 <body></body>
   450 #errors
   451 (1,6): expected-doctype-but-got-start-tag
   452 #document
   453 | <html>
   454 |   <head>
   455 |   "
   456 "
   457 |   <body>
   459 #data
   460 <head></head> <style></style>ddd
   461 #errors
   462 (1,6): expected-doctype-but-got-start-tag
   463 (1,21): unexpected-start-tag-out-of-my-head
   464 #document
   465 | <html>
   466 |   <head>
   467 |     <style>
   468 |   " "
   469 |   <body>
   470 |     "ddd"
   472 #data
   473 <kbd><table></kbd><col><select><tr>
   474 #errors
   475 (1,5): expected-doctype-but-got-start-tag
   476 (1,18): unexpected-end-tag-implies-table-voodoo
   477 (1,18): unexpected-end-tag
   478 (1,31): unexpected-start-tag-implies-table-voodoo
   479 (1,35): unexpected-table-element-start-tag-in-select-in-table
   480 (1,35): eof-in-table
   481 #document
   482 | <html>
   483 |   <head>
   484 |   <body>
   485 |     <kbd>
   486 |       <select>
   487 |       <table>
   488 |         <colgroup>
   489 |           <col>
   490 |         <tbody>
   491 |           <tr>
   493 #data
   494 <kbd><table></kbd><col><select><tr></table><div>
   495 #errors
   496 (1,5): expected-doctype-but-got-start-tag
   497 (1,18): unexpected-end-tag-implies-table-voodoo
   498 (1,18): unexpected-end-tag
   499 (1,31): unexpected-start-tag-implies-table-voodoo
   500 (1,35): unexpected-table-element-start-tag-in-select-in-table
   501 (1,48): expected-closing-tag-but-got-eof
   502 #document
   503 | <html>
   504 |   <head>
   505 |   <body>
   506 |     <kbd>
   507 |       <select>
   508 |       <table>
   509 |         <colgroup>
   510 |           <col>
   511 |         <tbody>
   512 |           <tr>
   513 |       <div>
   515 #data
   516 <a><li><style></style><title></title></a>
   517 #errors
   518 (1,3): expected-doctype-but-got-start-tag
   519 (1,41): adoption-agency-1.3
   520 #document
   521 | <html>
   522 |   <head>
   523 |   <body>
   524 |     <a>
   525 |     <li>
   526 |       <a>
   527 |         <style>
   528 |         <title>
   530 #data
   531 <font></p><p><meta><title></title></font>
   532 #errors
   533 (1,6): expected-doctype-but-got-start-tag
   534 (1,10): unexpected-end-tag
   535 (1,41): adoption-agency-1.3
   536 #document
   537 | <html>
   538 |   <head>
   539 |   <body>
   540 |     <font>
   541 |       <p>
   542 |     <p>
   543 |       <font>
   544 |         <meta>
   545 |         <title>
   547 #data
   548 <a><center><title></title><a>
   549 #errors
   550 (1,3): expected-doctype-but-got-start-tag
   551 (1,29): unexpected-start-tag-implies-end-tag
   552 (1,29): adoption-agency-1.3
   553 (1,29): expected-closing-tag-but-got-eof
   554 #document
   555 | <html>
   556 |   <head>
   557 |   <body>
   558 |     <a>
   559 |     <center>
   560 |       <a>
   561 |         <title>
   562 |       <a>
   564 #data
   565 <svg><title><div>
   566 #errors
   567 (1,5): expected-doctype-but-got-start-tag
   568 (1,17): expected-closing-tag-but-got-eof
   569 #document
   570 | <html>
   571 |   <head>
   572 |   <body>
   573 |     <svg svg>
   574 |       <svg title>
   575 |         <div>
   577 #data
   578 <svg><title><rect><div>
   579 #errors
   580 (1,5): expected-doctype-but-got-start-tag
   581 (1,23): expected-closing-tag-but-got-eof
   582 #document
   583 | <html>
   584 |   <head>
   585 |   <body>
   586 |     <svg svg>
   587 |       <svg title>
   588 |         <rect>
   589 |           <div>
   591 #data
   592 <svg><title><svg><div>
   593 #errors
   594 (1,5): expected-doctype-but-got-start-tag
   595 (1,22): unexpected-html-element-in-foreign-content
   596 (1,22): expected-closing-tag-but-got-eof
   597 #document
   598 | <html>
   599 |   <head>
   600 |   <body>
   601 |     <svg svg>
   602 |       <svg title>
   603 |         <svg svg>
   604 |         <div>
   606 #data
   607 <img <="" FAIL>
   608 #errors
   609 (1,6): invalid-character-in-attribute-name
   610 (1,15): expected-doctype-but-got-start-tag
   611 #document
   612 | <html>
   613 |   <head>
   614 |   <body>
   615 |     <img>
   616 |       <=""
   617 |       fail=""
   619 #data
   620 <ul><li><div id='foo'/>A</li><li>B<div>C</div></li></ul>
   621 #errors
   622 (1,4): expected-doctype-but-got-start-tag
   623 (1,23): non-void-element-with-trailing-solidus
   624 (1,29): end-tag-too-early
   625 #document
   626 | <html>
   627 |   <head>
   628 |   <body>
   629 |     <ul>
   630 |       <li>
   631 |         <div>
   632 |           id="foo"
   633 |           "A"
   634 |       <li>
   635 |         "B"
   636 |         <div>
   637 |           "C"
   639 #data
   640 <svg><em><desc></em>
   641 #errors
   642 (1,5): expected-doctype-but-got-start-tag
   643 (1,9): unexpected-html-element-in-foreign-content
   644 (1,20): adoption-agency-1.3
   645 #document
   646 | <html>
   647 |   <head>
   648 |   <body>
   649 |     <svg svg>
   650 |     <em>
   651 |       <desc>
   653 #data
   654 <svg><tfoot></mi><td>
   655 #errors
   656 (1,5): expected-doctype-but-got-start-tag
   657 (1,17): unexpected-end-tag
   658 (1,17): unexpected-end-tag
   659 (1,21): expected-closing-tag-but-got-eof
   660 #document
   661 | <html>
   662 |   <head>
   663 |   <body>
   664 |     <svg svg>
   665 |       <svg tfoot>
   666 |         <svg td>
   668 #data
   669 <math><mrow><mrow><mn>1</mn></mrow><mi>a</mi></mrow></math>
   670 #errors
   671 (1,6): expected-doctype-but-got-start-tag
   672 #document
   673 | <html>
   674 |   <head>
   675 |   <body>
   676 |     <math math>
   677 |       <math mrow>
   678 |         <math mrow>
   679 |           <math mn>
   680 |             "1"
   681 |         <math mi>
   682 |           "a"
   684 #data
   685 <!doctype html><input type="hidden"><frameset>
   686 #errors
   687 (1,46): unexpected-start-tag
   688 (1,46): eof-in-frameset
   689 #document
   690 | <!DOCTYPE html>
   691 | <html>
   692 |   <head>
   693 |   <frameset>
   695 #data
   696 <!doctype html><input type="button"><frameset>
   697 #errors
   698 (1,46): unexpected-start-tag
   699 #document
   700 | <!DOCTYPE html>
   701 | <html>
   702 |   <head>
   703 |   <body>
   704 |     <input>
   705 |       type="button"

mercurial