parser/htmlparser/tests/mochitest/html5lib_tree_construction/tests2.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 <!DOCTYPE html>Test
     3 #errors
     4 #document
     5 | <!DOCTYPE html>
     6 | <html>
     7 |   <head>
     8 |   <body>
     9 |     "Test"
    11 #data
    12 <textarea>test</div>test
    13 #errors
    14 (1,10): expected-doctype-but-got-start-tag
    15 (1,24): expected-closing-tag-but-got-eof
    16 #document
    17 | <html>
    18 |   <head>
    19 |   <body>
    20 |     <textarea>
    21 |       "test</div>test"
    23 #data
    24 <table><td>
    25 #errors
    26 (1,7): expected-doctype-but-got-start-tag
    27 (1,11): unexpected-cell-in-table-body
    28 (1,11): expected-closing-tag-but-got-eof
    29 #document
    30 | <html>
    31 |   <head>
    32 |   <body>
    33 |     <table>
    34 |       <tbody>
    35 |         <tr>
    36 |           <td>
    38 #data
    39 <table><td>test</tbody></table>
    40 #errors
    41 (1,7): expected-doctype-but-got-start-tag
    42 (1,11): unexpected-cell-in-table-body
    43 #document
    44 | <html>
    45 |   <head>
    46 |   <body>
    47 |     <table>
    48 |       <tbody>
    49 |         <tr>
    50 |           <td>
    51 |             "test"
    53 #data
    54 <frame>test
    55 #errors
    56 (1,7): expected-doctype-but-got-start-tag
    57 (1,7): unexpected-start-tag-ignored
    58 #document
    59 | <html>
    60 |   <head>
    61 |   <body>
    62 |     "test"
    64 #data
    65 <!DOCTYPE html><frameset>test
    66 #errors
    67 (1,29): unexpected-char-in-frameset
    68 (1,29): unexpected-char-in-frameset
    69 (1,29): unexpected-char-in-frameset
    70 (1,29): unexpected-char-in-frameset
    71 (1,29): eof-in-frameset
    72 #document
    73 | <!DOCTYPE html>
    74 | <html>
    75 |   <head>
    76 |   <frameset>
    78 #data
    79 <!DOCTYPE html><frameset><!DOCTYPE html>
    80 #errors
    81 (1,40): unexpected-doctype
    82 (1,40): eof-in-frameset
    83 #document
    84 | <!DOCTYPE html>
    85 | <html>
    86 |   <head>
    87 |   <frameset>
    89 #data
    90 <!DOCTYPE html><font><p><b>test</font>
    91 #errors
    92 (1,38): adoption-agency-1.3
    93 (1,38): adoption-agency-1.3
    94 #document
    95 | <!DOCTYPE html>
    96 | <html>
    97 |   <head>
    98 |   <body>
    99 |     <font>
   100 |     <p>
   101 |       <font>
   102 |         <b>
   103 |           "test"
   105 #data
   106 <!DOCTYPE html><dt><div><dd>
   107 #errors
   108 (1,28): end-tag-too-early
   109 #document
   110 | <!DOCTYPE html>
   111 | <html>
   112 |   <head>
   113 |   <body>
   114 |     <dt>
   115 |       <div>
   116 |     <dd>
   118 #data
   119 <script></x
   120 #errors
   121 (1,8): expected-doctype-but-got-start-tag
   122 (1,11): expected-named-closing-tag-but-got-eof
   123 #document
   124 | <html>
   125 |   <head>
   126 |     <script>
   127 |       "</x"
   128 |   <body>
   130 #data
   131 <table><plaintext><td>
   132 #errors
   133 (1,7): expected-doctype-but-got-start-tag
   134 (1,18): unexpected-start-tag-implies-table-voodoo
   135 (1,22): foster-parenting-character-in-table
   136 (1,22): foster-parenting-character-in-table
   137 (1,22): foster-parenting-character-in-table
   138 (1,22): foster-parenting-character-in-table
   139 (1,22): eof-in-table
   140 #document
   141 | <html>
   142 |   <head>
   143 |   <body>
   144 |     <plaintext>
   145 |       "<td>"
   146 |     <table>
   148 #data
   149 <plaintext></plaintext>
   150 #errors
   151 (1,11): expected-doctype-but-got-start-tag
   152 (1,23): expected-closing-tag-but-got-eof
   153 #document
   154 | <html>
   155 |   <head>
   156 |   <body>
   157 |     <plaintext>
   158 |       "</plaintext>"
   160 #data
   161 <!DOCTYPE html><table><tr>TEST
   162 #errors
   163 (1,30): foster-parenting-character-in-table
   164 (1,30): foster-parenting-character-in-table
   165 (1,30): foster-parenting-character-in-table
   166 (1,30): foster-parenting-character-in-table
   167 (1,30): eof-in-table
   168 #document
   169 | <!DOCTYPE html>
   170 | <html>
   171 |   <head>
   172 |   <body>
   173 |     "TEST"
   174 |     <table>
   175 |       <tbody>
   176 |         <tr>
   178 #data
   179 <!DOCTYPE html><body t1=1><body t2=2><body t3=3 t4=4>
   180 #errors
   181 (1,37): unexpected-start-tag
   182 (1,53): unexpected-start-tag
   183 #document
   184 | <!DOCTYPE html>
   185 | <html>
   186 |   <head>
   187 |   <body>
   188 |     t1="1"
   189 |     t2="2"
   190 |     t3="3"
   191 |     t4="4"
   193 #data
   194 </b test
   195 #errors
   196 (1,8): eof-in-attribute-name
   197 (1,8): expected-doctype-but-got-eof
   198 #document
   199 | <html>
   200 |   <head>
   201 |   <body>
   203 #data
   204 <!DOCTYPE html></b test<b &=&amp>X
   205 #errors
   206 (1,24): invalid-character-in-attribute-name
   207 (1,32): named-entity-without-semicolon
   208 (1,33): attributes-in-end-tag
   209 (1,33): unexpected-end-tag-before-html
   210 #document
   211 | <!DOCTYPE html>
   212 | <html>
   213 |   <head>
   214 |   <body>
   215 |     "X"
   217 #data
   218 <!doctypehtml><scrIPt type=text/x-foobar;baz>X</SCRipt
   219 #errors
   220 (1,9): need-space-after-doctype
   221 (1,54): expected-named-closing-tag-but-got-eof
   222 #document
   223 | <!DOCTYPE html>
   224 | <html>
   225 |   <head>
   226 |     <script>
   227 |       type="text/x-foobar;baz"
   228 |       "X</SCRipt"
   229 |   <body>
   231 #data
   232 &
   233 #errors
   234 (1,1): expected-doctype-but-got-chars
   235 #document
   236 | <html>
   237 |   <head>
   238 |   <body>
   239 |     "&"
   241 #data
   242 &#
   243 #errors
   244 (1,2): expected-numeric-entity
   245 (1,2): expected-doctype-but-got-chars
   246 #document
   247 | <html>
   248 |   <head>
   249 |   <body>
   250 |     "&#"
   252 #data
   253 &#X
   254 #errors
   255 (1,3): expected-numeric-entity
   256 (1,3): expected-doctype-but-got-chars
   257 #document
   258 | <html>
   259 |   <head>
   260 |   <body>
   261 |     "&#X"
   263 #data
   264 &#x
   265 #errors
   266 (1,3): expected-numeric-entity
   267 (1,3): expected-doctype-but-got-chars
   268 #document
   269 | <html>
   270 |   <head>
   271 |   <body>
   272 |     "&#x"
   274 #data
   275 &#45
   276 #errors
   277 (1,4): numeric-entity-without-semicolon
   278 (1,4): expected-doctype-but-got-chars
   279 #document
   280 | <html>
   281 |   <head>
   282 |   <body>
   283 |     "-"
   285 #data
   286 &x-test
   287 #errors
   288 (1,2): expected-doctype-but-got-chars
   289 #document
   290 | <html>
   291 |   <head>
   292 |   <body>
   293 |     "&x-test"
   295 #data
   296 <!doctypehtml><p><li>
   297 #errors
   298 (1,9): need-space-after-doctype
   299 #document
   300 | <!DOCTYPE html>
   301 | <html>
   302 |   <head>
   303 |   <body>
   304 |     <p>
   305 |     <li>
   307 #data
   308 <!doctypehtml><p><dt>
   309 #errors
   310 (1,9): need-space-after-doctype
   311 #document
   312 | <!DOCTYPE html>
   313 | <html>
   314 |   <head>
   315 |   <body>
   316 |     <p>
   317 |     <dt>
   319 #data
   320 <!doctypehtml><p><dd>
   321 #errors
   322 (1,9): need-space-after-doctype
   323 #document
   324 | <!DOCTYPE html>
   325 | <html>
   326 |   <head>
   327 |   <body>
   328 |     <p>
   329 |     <dd>
   331 #data
   332 <!doctypehtml><p><form>
   333 #errors
   334 (1,9): need-space-after-doctype
   335 (1,23): expected-closing-tag-but-got-eof
   336 #document
   337 | <!DOCTYPE html>
   338 | <html>
   339 |   <head>
   340 |   <body>
   341 |     <p>
   342 |     <form>
   344 #data
   345 <!DOCTYPE html><p></P>X
   346 #errors
   347 #document
   348 | <!DOCTYPE html>
   349 | <html>
   350 |   <head>
   351 |   <body>
   352 |     <p>
   353 |     "X"
   355 #data
   356 &AMP
   357 #errors
   358 (1,4): named-entity-without-semicolon
   359 (1,4): expected-doctype-but-got-chars
   360 #document
   361 | <html>
   362 |   <head>
   363 |   <body>
   364 |     "&"
   366 #data
   367 &AMp;
   368 #errors
   369 (1,3): expected-named-entity
   370 (1,3): expected-doctype-but-got-chars
   371 #document
   372 | <html>
   373 |   <head>
   374 |   <body>
   375 |     "&AMp;"
   377 #data
   378 <!DOCTYPE html><html><head></head><body><thisISasillyTESTelementNameToMakeSureCrazyTagNamesArePARSEDcorrectLY>
   379 #errors
   380 (1,110): expected-closing-tag-but-got-eof
   381 #document
   382 | <!DOCTYPE html>
   383 | <html>
   384 |   <head>
   385 |   <body>
   386 |     <thisisasillytestelementnametomakesurecrazytagnamesareparsedcorrectly>
   388 #data
   389 <!DOCTYPE html>X</body>X
   390 #errors
   391 (1,24): unexpected-char-after-body
   392 #document
   393 | <!DOCTYPE html>
   394 | <html>
   395 |   <head>
   396 |   <body>
   397 |     "XX"
   399 #data
   400 <!DOCTYPE html><!-- X
   401 #errors
   402 (1,21): eof-in-comment
   403 #document
   404 | <!DOCTYPE html>
   405 | <!--  X -->
   406 | <html>
   407 |   <head>
   408 |   <body>
   410 #data
   411 <!DOCTYPE html><table><caption>test TEST</caption><td>test
   412 #errors
   413 (1,54): unexpected-cell-in-table-body
   414 (1,58): expected-closing-tag-but-got-eof
   415 #document
   416 | <!DOCTYPE html>
   417 | <html>
   418 |   <head>
   419 |   <body>
   420 |     <table>
   421 |       <caption>
   422 |         "test TEST"
   423 |       <tbody>
   424 |         <tr>
   425 |           <td>
   426 |             "test"
   428 #data
   429 <!DOCTYPE html><select><option><optgroup>
   430 #errors
   431 (1,41): eof-in-select
   432 #document
   433 | <!DOCTYPE html>
   434 | <html>
   435 |   <head>
   436 |   <body>
   437 |     <select>
   438 |       <option>
   439 |       <optgroup>
   441 #data
   442 <!DOCTYPE html><select><optgroup><option></optgroup><option><select><option>
   443 #errors
   444 (1,68): unexpected-select-in-select
   445 (1,76): expected-closing-tag-but-got-eof
   446 #document
   447 | <!DOCTYPE html>
   448 | <html>
   449 |   <head>
   450 |   <body>
   451 |     <select>
   452 |       <optgroup>
   453 |         <option>
   454 |       <option>
   455 |     <option>
   457 #data
   458 <!DOCTYPE html><select><optgroup><option><optgroup>
   459 #errors
   460 (1,51): eof-in-select
   461 #document
   462 | <!DOCTYPE html>
   463 | <html>
   464 |   <head>
   465 |   <body>
   466 |     <select>
   467 |       <optgroup>
   468 |         <option>
   469 |       <optgroup>
   471 #data
   472 <!DOCTYPE html><datalist><option>foo</datalist>bar
   473 #errors
   474 #document
   475 | <!DOCTYPE html>
   476 | <html>
   477 |   <head>
   478 |   <body>
   479 |     <datalist>
   480 |       <option>
   481 |         "foo"
   482 |     "bar"
   484 #data
   485 <!DOCTYPE html><font><input><input></font>
   486 #errors
   487 #document
   488 | <!DOCTYPE html>
   489 | <html>
   490 |   <head>
   491 |   <body>
   492 |     <font>
   493 |       <input>
   494 |       <input>
   496 #data
   497 <!DOCTYPE html><!-- XXX - XXX -->
   498 #errors
   499 #document
   500 | <!DOCTYPE html>
   501 | <!--  XXX - XXX  -->
   502 | <html>
   503 |   <head>
   504 |   <body>
   506 #data
   507 <!DOCTYPE html><!-- XXX - XXX
   508 #errors
   509 (1,29): eof-in-comment
   510 #document
   511 | <!DOCTYPE html>
   512 | <!--  XXX - XXX -->
   513 | <html>
   514 |   <head>
   515 |   <body>
   517 #data
   518 <!DOCTYPE html><!-- XXX - XXX - XXX -->
   519 #errors
   520 #document
   521 | <!DOCTYPE html>
   522 | <!--  XXX - XXX - XXX  -->
   523 | <html>
   524 |   <head>
   525 |   <body>
   527 #data
   528 <isindex test=x name=x>
   529 #errors
   530 (1,23): expected-doctype-but-got-start-tag
   531 (1,23): deprecated-tag
   532 #document
   533 | <html>
   534 |   <head>
   535 |   <body>
   536 |     <form>
   537 |       <hr>
   538 |       <label>
   539 |         "This is a searchable index. Enter search keywords: "
   540 |         <input>
   541 |           name="isindex"
   542 |           test="x"
   543 |       <hr>
   545 #data
   546 test
   547 test
   548 #errors
   549 (2,4): expected-doctype-but-got-chars
   550 #document
   551 | <html>
   552 |   <head>
   553 |   <body>
   554 |     "test
   555 test"
   557 #data
   558 <!DOCTYPE html><body><title>test</body></title>
   559 #errors
   560 #document
   561 | <!DOCTYPE html>
   562 | <html>
   563 |   <head>
   564 |   <body>
   565 |     <title>
   566 |       "test</body>"
   568 #data
   569 <!DOCTYPE html><body><title>X</title><meta name=z><link rel=foo><style>
   570 x { content:"</style" } </style>
   571 #errors
   572 #document
   573 | <!DOCTYPE html>
   574 | <html>
   575 |   <head>
   576 |   <body>
   577 |     <title>
   578 |       "X"
   579 |     <meta>
   580 |       name="z"
   581 |     <link>
   582 |       rel="foo"
   583 |     <style>
   584 |       "
   585 x { content:"</style" } "
   587 #data
   588 <!DOCTYPE html><select><optgroup></optgroup></select>
   589 #errors
   590 #document
   591 | <!DOCTYPE html>
   592 | <html>
   593 |   <head>
   594 |   <body>
   595 |     <select>
   596 |       <optgroup>
   598 #data
   601 #errors
   602 (2,1): expected-doctype-but-got-eof
   603 #document
   604 | <html>
   605 |   <head>
   606 |   <body>
   608 #data
   609 <!DOCTYPE html>  <html>
   610 #errors
   611 #document
   612 | <!DOCTYPE html>
   613 | <html>
   614 |   <head>
   615 |   <body>
   617 #data
   618 <!DOCTYPE html><script>
   619 </script>  <title>x</title>  </head>
   620 #errors
   621 #document
   622 | <!DOCTYPE html>
   623 | <html>
   624 |   <head>
   625 |     <script>
   626 |       "
   627 "
   628 |     "  "
   629 |     <title>
   630 |       "x"
   631 |     "  "
   632 |   <body>
   634 #data
   635 <!DOCTYPE html><html><body><html id=x>
   636 #errors
   637 (1,38): non-html-root
   638 #document
   639 | <!DOCTYPE html>
   640 | <html>
   641 |   id="x"
   642 |   <head>
   643 |   <body>
   645 #data
   646 <!DOCTYPE html>X</body><html id="x">
   647 #errors
   648 (1,36): non-html-root
   649 #document
   650 | <!DOCTYPE html>
   651 | <html>
   652 |   id="x"
   653 |   <head>
   654 |   <body>
   655 |     "X"
   657 #data
   658 <!DOCTYPE html><head><html id=x>
   659 #errors
   660 (1,32): non-html-root
   661 #document
   662 | <!DOCTYPE html>
   663 | <html>
   664 |   id="x"
   665 |   <head>
   666 |   <body>
   668 #data
   669 <!DOCTYPE html>X</html>X
   670 #errors
   671 (1,24): expected-eof-but-got-char
   672 #document
   673 | <!DOCTYPE html>
   674 | <html>
   675 |   <head>
   676 |   <body>
   677 |     "XX"
   679 #data
   680 <!DOCTYPE html>X</html> 
   681 #errors
   682 #document
   683 | <!DOCTYPE html>
   684 | <html>
   685 |   <head>
   686 |   <body>
   687 |     "X "
   689 #data
   690 <!DOCTYPE html>X</html><p>X
   691 #errors
   692 (1,26): expected-eof-but-got-start-tag
   693 #document
   694 | <!DOCTYPE html>
   695 | <html>
   696 |   <head>
   697 |   <body>
   698 |     "X"
   699 |     <p>
   700 |       "X"
   702 #data
   703 <!DOCTYPE html>X<p/x/y/z>
   704 #errors
   705 (1,19): unexpected-character-after-solidus-in-tag
   706 (1,21): unexpected-character-after-solidus-in-tag
   707 (1,23): unexpected-character-after-solidus-in-tag
   708 #document
   709 | <!DOCTYPE html>
   710 | <html>
   711 |   <head>
   712 |   <body>
   713 |     "X"
   714 |     <p>
   715 |       x=""
   716 |       y=""
   717 |       z=""
   719 #data
   720 <!DOCTYPE html><!--x--
   721 #errors
   722 (1,22): eof-in-comment-double-dash
   723 #document
   724 | <!DOCTYPE html>
   725 | <!-- x -->
   726 | <html>
   727 |   <head>
   728 |   <body>
   730 #data
   731 <!DOCTYPE html><table><tr><td></p></table>
   732 #errors
   733 (1,34): unexpected-end-tag
   734 #document
   735 | <!DOCTYPE html>
   736 | <html>
   737 |   <head>
   738 |   <body>
   739 |     <table>
   740 |       <tbody>
   741 |         <tr>
   742 |           <td>
   743 |             <p>
   745 #data
   746 <!DOCTYPE <!DOCTYPE HTML>><!--<!--x-->-->
   747 #errors
   748 (1,20): expected-space-or-right-bracket-in-doctype
   749 (1,25): unknown-doctype
   750 (1,35): unexpected-char-in-comment
   751 #document
   752 | <!DOCTYPE <!doctype>
   753 | <html>
   754 |   <head>
   755 |   <body>
   756 |     ">"
   757 |     <!-- <!--x -->
   758 |     "-->"
   760 #data
   761 <!doctype html><div><form></form><div></div></div>
   762 #errors
   763 #document
   764 | <!DOCTYPE html>
   765 | <html>
   766 |   <head>
   767 |   <body>
   768 |     <div>
   769 |       <form>
   770 |       <div>

mercurial