github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/html/testdata/webkit/tests6.dat (about)

     1  #data
     2  <!doctype html></head> <head>
     3  #errors
     4  Line: 1 Col: 29 Unexpected start tag head. Ignored.
     5  #document
     6  | <!DOCTYPE html>
     7  | <html>
     8  |   <head>
     9  |   " "
    10  |   <body>
    11  
    12  #data
    13  <!doctype html><form><div></form><div>
    14  #errors
    15  33: End tag "form" seen but there were unclosed elements.
    16  38: End of file seen and there were open elements.
    17  #document
    18  | <!DOCTYPE html>
    19  | <html>
    20  |   <head>
    21  |   <body>
    22  |     <form>
    23  |       <div>
    24  |         <div>
    25  
    26  #data
    27  <!doctype html><title>&amp;</title>
    28  #errors
    29  #document
    30  | <!DOCTYPE html>
    31  | <html>
    32  |   <head>
    33  |     <title>
    34  |       "&"
    35  |   <body>
    36  
    37  #data
    38  <!doctype html><title><!--&amp;--></title>
    39  #errors
    40  #document
    41  | <!DOCTYPE html>
    42  | <html>
    43  |   <head>
    44  |     <title>
    45  |       "<!--&-->"
    46  |   <body>
    47  
    48  #data
    49  <!doctype>
    50  #errors
    51  Line: 1 Col: 9 No space after literal string 'DOCTYPE'.
    52  Line: 1 Col: 10 Unexpected > character. Expected DOCTYPE name.
    53  Line: 1 Col: 10 Erroneous DOCTYPE.
    54  #document
    55  | <!DOCTYPE >
    56  | <html>
    57  |   <head>
    58  |   <body>
    59  
    60  #data
    61  <!---x
    62  #errors
    63  Line: 1 Col: 6 Unexpected end of file in comment.
    64  Line: 1 Col: 6 Unexpected End of file. Expected DOCTYPE.
    65  #document
    66  | <!-- -x -->
    67  | <html>
    68  |   <head>
    69  |   <body>
    70  
    71  #data
    72  <body>
    73  <div>
    74  #errors
    75  Line: 1 Col: 6 Unexpected start tag (body).
    76  Line: 2 Col: 5 Expected closing tag. Unexpected end of file.
    77  #document-fragment
    78  div
    79  #document
    80  | "
    81  "
    82  | <div>
    83  
    84  #data
    85  <frameset></frameset>
    86  foo
    87  #errors
    88  Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
    89  Line: 2 Col: 3 Unexpected non-space characters in the after frameset phase. Ignored.
    90  #document
    91  | <html>
    92  |   <head>
    93  |   <frameset>
    94  |   "
    95  "
    96  
    97  #data
    98  <frameset></frameset>
    99  <noframes>
   100  #errors
   101  Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
   102  Line: 2 Col: 10 Expected closing tag. Unexpected end of file.
   103  #document
   104  | <html>
   105  |   <head>
   106  |   <frameset>
   107  |   "
   108  "
   109  |   <noframes>
   110  
   111  #data
   112  <frameset></frameset>
   113  <div>
   114  #errors
   115  Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
   116  Line: 2 Col: 5 Unexpected start tag (div) in the after frameset phase. Ignored.
   117  #document
   118  | <html>
   119  |   <head>
   120  |   <frameset>
   121  |   "
   122  "
   123  
   124  #data
   125  <frameset></frameset>
   126  </html>
   127  #errors
   128  Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
   129  #document
   130  | <html>
   131  |   <head>
   132  |   <frameset>
   133  |   "
   134  "
   135  
   136  #data
   137  <frameset></frameset>
   138  </div>
   139  #errors
   140  Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
   141  Line: 2 Col: 6 Unexpected end tag (div) in the after frameset phase. Ignored.
   142  #document
   143  | <html>
   144  |   <head>
   145  |   <frameset>
   146  |   "
   147  "
   148  
   149  #data
   150  <form><form>
   151  #errors
   152  Line: 1 Col: 6 Unexpected start tag (form). Expected DOCTYPE.
   153  Line: 1 Col: 12 Unexpected start tag (form).
   154  Line: 1 Col: 12 Expected closing tag. Unexpected end of file.
   155  #document
   156  | <html>
   157  |   <head>
   158  |   <body>
   159  |     <form>
   160  
   161  #data
   162  <button><button>
   163  #errors
   164  Line: 1 Col: 8 Unexpected start tag (button). Expected DOCTYPE.
   165  Line: 1 Col: 16 Unexpected start tag (button) implies end tag (button).
   166  Line: 1 Col: 16 Expected closing tag. Unexpected end of file.
   167  #document
   168  | <html>
   169  |   <head>
   170  |   <body>
   171  |     <button>
   172  |     <button>
   173  
   174  #data
   175  <table><tr><td></th>
   176  #errors
   177  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   178  Line: 1 Col: 20 Unexpected end tag (th). Ignored.
   179  Line: 1 Col: 20 Expected closing tag. Unexpected end of file.
   180  #document
   181  | <html>
   182  |   <head>
   183  |   <body>
   184  |     <table>
   185  |       <tbody>
   186  |         <tr>
   187  |           <td>
   188  
   189  #data
   190  <table><caption><td>
   191  #errors
   192  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   193  Line: 1 Col: 20 Unexpected end tag (td). Ignored.
   194  Line: 1 Col: 20 Unexpected table cell start tag (td) in the table body phase.
   195  Line: 1 Col: 20 Expected closing tag. Unexpected end of file.
   196  #document
   197  | <html>
   198  |   <head>
   199  |   <body>
   200  |     <table>
   201  |       <caption>
   202  |       <tbody>
   203  |         <tr>
   204  |           <td>
   205  
   206  #data
   207  <table><caption><div>
   208  #errors
   209  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   210  Line: 1 Col: 21 Expected closing tag. Unexpected end of file.
   211  #document
   212  | <html>
   213  |   <head>
   214  |   <body>
   215  |     <table>
   216  |       <caption>
   217  |         <div>
   218  
   219  #data
   220  </caption><div>
   221  #errors
   222  Line: 1 Col: 10 Unexpected end tag (caption). Ignored.
   223  Line: 1 Col: 15 Expected closing tag. Unexpected end of file.
   224  #document-fragment
   225  caption
   226  #document
   227  | <div>
   228  
   229  #data
   230  <table><caption><div></caption>
   231  #errors
   232  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   233  Line: 1 Col: 31 Unexpected end tag (caption). Missing end tag (div).
   234  Line: 1 Col: 31 Unexpected end of file. Expected table content.
   235  #document
   236  | <html>
   237  |   <head>
   238  |   <body>
   239  |     <table>
   240  |       <caption>
   241  |         <div>
   242  
   243  #data
   244  <table><caption></table>
   245  #errors
   246  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   247  Line: 1 Col: 24 Unexpected end table tag in caption. Generates implied end caption.
   248  #document
   249  | <html>
   250  |   <head>
   251  |   <body>
   252  |     <table>
   253  |       <caption>
   254  
   255  #data
   256  </table><div>
   257  #errors
   258  Line: 1 Col: 8 Unexpected end table tag in caption. Generates implied end caption.
   259  Line: 1 Col: 8 Unexpected end tag (caption). Ignored.
   260  Line: 1 Col: 13 Expected closing tag. Unexpected end of file.
   261  #document-fragment
   262  caption
   263  #document
   264  | <div>
   265  
   266  #data
   267  <table><caption></body></col></colgroup></html></tbody></td></tfoot></th></thead></tr>
   268  #errors
   269  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   270  Line: 1 Col: 23 Unexpected end tag (body). Ignored.
   271  Line: 1 Col: 29 Unexpected end tag (col). Ignored.
   272  Line: 1 Col: 40 Unexpected end tag (colgroup). Ignored.
   273  Line: 1 Col: 47 Unexpected end tag (html). Ignored.
   274  Line: 1 Col: 55 Unexpected end tag (tbody). Ignored.
   275  Line: 1 Col: 60 Unexpected end tag (td). Ignored.
   276  Line: 1 Col: 68 Unexpected end tag (tfoot). Ignored.
   277  Line: 1 Col: 73 Unexpected end tag (th). Ignored.
   278  Line: 1 Col: 81 Unexpected end tag (thead). Ignored.
   279  Line: 1 Col: 86 Unexpected end tag (tr). Ignored.
   280  Line: 1 Col: 86 Expected closing tag. Unexpected end of file.
   281  #document
   282  | <html>
   283  |   <head>
   284  |   <body>
   285  |     <table>
   286  |       <caption>
   287  
   288  #data
   289  <table><caption><div></div>
   290  #errors
   291  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   292  Line: 1 Col: 27 Expected closing tag. Unexpected end of file.
   293  #document
   294  | <html>
   295  |   <head>
   296  |   <body>
   297  |     <table>
   298  |       <caption>
   299  |         <div>
   300  
   301  #data
   302  <table><tr><td></body></caption></col></colgroup></html>
   303  #errors
   304  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   305  Line: 1 Col: 22 Unexpected end tag (body). Ignored.
   306  Line: 1 Col: 32 Unexpected end tag (caption). Ignored.
   307  Line: 1 Col: 38 Unexpected end tag (col). Ignored.
   308  Line: 1 Col: 49 Unexpected end tag (colgroup). Ignored.
   309  Line: 1 Col: 56 Unexpected end tag (html). Ignored.
   310  Line: 1 Col: 56 Expected closing tag. Unexpected end of file.
   311  #document
   312  | <html>
   313  |   <head>
   314  |   <body>
   315  |     <table>
   316  |       <tbody>
   317  |         <tr>
   318  |           <td>
   319  
   320  #data
   321  </table></tbody></tfoot></thead></tr><div>
   322  #errors
   323  Line: 1 Col: 8 Unexpected end tag (table). Ignored.
   324  Line: 1 Col: 16 Unexpected end tag (tbody). Ignored.
   325  Line: 1 Col: 24 Unexpected end tag (tfoot). Ignored.
   326  Line: 1 Col: 32 Unexpected end tag (thead). Ignored.
   327  Line: 1 Col: 37 Unexpected end tag (tr). Ignored.
   328  Line: 1 Col: 42 Expected closing tag. Unexpected end of file.
   329  #document-fragment
   330  td
   331  #document
   332  | <div>
   333  
   334  #data
   335  <table><colgroup>foo
   336  #errors
   337  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   338  Line: 1 Col: 20 Unexpected non-space characters in table context caused voodoo mode.
   339  Line: 1 Col: 20 Unexpected end of file. Expected table content.
   340  #document
   341  | <html>
   342  |   <head>
   343  |   <body>
   344  |     "foo"
   345  |     <table>
   346  |       <colgroup>
   347  
   348  #data
   349  foo<col>
   350  #errors
   351  Line: 1 Col: 3 Unexpected end tag (colgroup). Ignored.
   352  #document-fragment
   353  colgroup
   354  #document
   355  | <col>
   356  
   357  #data
   358  <table><colgroup></col>
   359  #errors
   360  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   361  Line: 1 Col: 23 This element (col) has no end tag.
   362  Line: 1 Col: 23 Expected closing tag. Unexpected end of file.
   363  #document
   364  | <html>
   365  |   <head>
   366  |   <body>
   367  |     <table>
   368  |       <colgroup>
   369  
   370  #data
   371  <frameset><div>
   372  #errors
   373  Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
   374  Line: 1 Col: 15 Unexpected start tag token (div) in the frameset phase. Ignored.
   375  Line: 1 Col: 15 Expected closing tag. Unexpected end of file.
   376  #document
   377  | <html>
   378  |   <head>
   379  |   <frameset>
   380  
   381  #data
   382  </frameset><frame>
   383  #errors
   384  Line: 1 Col: 11 Unexpected end tag token (frameset) in the frameset phase (innerHTML).
   385  #document-fragment
   386  frameset
   387  #document
   388  | <frame>
   389  
   390  #data
   391  <frameset></div>
   392  #errors
   393  Line: 1 Col: 10 Unexpected start tag (frameset). Expected DOCTYPE.
   394  Line: 1 Col: 16 Unexpected end tag token (div) in the frameset phase. Ignored.
   395  Line: 1 Col: 16 Expected closing tag. Unexpected end of file.
   396  #document
   397  | <html>
   398  |   <head>
   399  |   <frameset>
   400  
   401  #data
   402  </body><div>
   403  #errors
   404  Line: 1 Col: 7 Unexpected end tag (body). Ignored.
   405  Line: 1 Col: 12 Expected closing tag. Unexpected end of file.
   406  #document-fragment
   407  body
   408  #document
   409  | <div>
   410  
   411  #data
   412  <table><tr><div>
   413  #errors
   414  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   415  Line: 1 Col: 16 Unexpected start tag (div) in table context caused voodoo mode.
   416  Line: 1 Col: 16 Unexpected end of file. Expected table content.
   417  #document
   418  | <html>
   419  |   <head>
   420  |   <body>
   421  |     <div>
   422  |     <table>
   423  |       <tbody>
   424  |         <tr>
   425  
   426  #data
   427  </tr><td>
   428  #errors
   429  Line: 1 Col: 5 Unexpected end tag (tr). Ignored.
   430  #document-fragment
   431  tr
   432  #document
   433  | <td>
   434  
   435  #data
   436  </tbody></tfoot></thead><td>
   437  #errors
   438  Line: 1 Col: 8 Unexpected end tag (tbody). Ignored.
   439  Line: 1 Col: 16 Unexpected end tag (tfoot). Ignored.
   440  Line: 1 Col: 24 Unexpected end tag (thead). Ignored.
   441  #document-fragment
   442  tr
   443  #document
   444  | <td>
   445  
   446  #data
   447  <table><tr><div><td>
   448  #errors
   449  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   450  Line: 1 Col: 16 Unexpected start tag (div) in table context caused voodoo mode.
   451  Line: 1 Col: 20 Unexpected implied end tag (div) in the table row phase.
   452  Line: 1 Col: 20 Expected closing tag. Unexpected end of file.
   453  #document
   454  | <html>
   455  |   <head>
   456  |   <body>
   457  |     <div>
   458  |     <table>
   459  |       <tbody>
   460  |         <tr>
   461  |           <td>
   462  
   463  #data
   464  <caption><col><colgroup><tbody><tfoot><thead><tr>
   465  #errors
   466  Line: 1 Col: 9 Unexpected start tag (caption).
   467  Line: 1 Col: 14 Unexpected start tag (col).
   468  Line: 1 Col: 24 Unexpected start tag (colgroup).
   469  Line: 1 Col: 31 Unexpected start tag (tbody).
   470  Line: 1 Col: 38 Unexpected start tag (tfoot).
   471  Line: 1 Col: 45 Unexpected start tag (thead).
   472  Line: 1 Col: 49 Unexpected end of file. Expected table content.
   473  #document-fragment
   474  tbody
   475  #document
   476  | <tr>
   477  
   478  #data
   479  <table><tbody></thead>
   480  #errors
   481  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   482  Line: 1 Col: 22 Unexpected end tag (thead) in the table body phase. Ignored.
   483  Line: 1 Col: 22 Unexpected end of file. Expected table content.
   484  #document
   485  | <html>
   486  |   <head>
   487  |   <body>
   488  |     <table>
   489  |       <tbody>
   490  
   491  #data
   492  </table><tr>
   493  #errors
   494  Line: 1 Col: 8 Unexpected end tag (table). Ignored.
   495  Line: 1 Col: 12 Unexpected end of file. Expected table content.
   496  #document-fragment
   497  tbody
   498  #document
   499  | <tr>
   500  
   501  #data
   502  <table><tbody></body></caption></col></colgroup></html></td></th></tr>
   503  #errors
   504  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   505  Line: 1 Col: 21 Unexpected end tag (body) in the table body phase. Ignored.
   506  Line: 1 Col: 31 Unexpected end tag (caption) in the table body phase. Ignored.
   507  Line: 1 Col: 37 Unexpected end tag (col) in the table body phase. Ignored.
   508  Line: 1 Col: 48 Unexpected end tag (colgroup) in the table body phase. Ignored.
   509  Line: 1 Col: 55 Unexpected end tag (html) in the table body phase. Ignored.
   510  Line: 1 Col: 60 Unexpected end tag (td) in the table body phase. Ignored.
   511  Line: 1 Col: 65 Unexpected end tag (th) in the table body phase. Ignored.
   512  Line: 1 Col: 70 Unexpected end tag (tr) in the table body phase. Ignored.
   513  Line: 1 Col: 70 Unexpected end of file. Expected table content.
   514  #document
   515  | <html>
   516  |   <head>
   517  |   <body>
   518  |     <table>
   519  |       <tbody>
   520  
   521  #data
   522  <table><tbody></div>
   523  #errors
   524  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   525  Line: 1 Col: 20 Unexpected end tag (div) in table context caused voodoo mode.
   526  Line: 1 Col: 20 End tag (div) seen too early. Expected other end tag.
   527  Line: 1 Col: 20 Unexpected end of file. Expected table content.
   528  #document
   529  | <html>
   530  |   <head>
   531  |   <body>
   532  |     <table>
   533  |       <tbody>
   534  
   535  #data
   536  <table><table>
   537  #errors
   538  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   539  Line: 1 Col: 14 Unexpected start tag (table) implies end tag (table).
   540  Line: 1 Col: 14 Unexpected end of file. Expected table content.
   541  #document
   542  | <html>
   543  |   <head>
   544  |   <body>
   545  |     <table>
   546  |     <table>
   547  
   548  #data
   549  <table></body></caption></col></colgroup></html></tbody></td></tfoot></th></thead></tr>
   550  #errors
   551  Line: 1 Col: 7 Unexpected start tag (table). Expected DOCTYPE.
   552  Line: 1 Col: 14 Unexpected end tag (body). Ignored.
   553  Line: 1 Col: 24 Unexpected end tag (caption). Ignored.
   554  Line: 1 Col: 30 Unexpected end tag (col). Ignored.
   555  Line: 1 Col: 41 Unexpected end tag (colgroup). Ignored.
   556  Line: 1 Col: 48 Unexpected end tag (html). Ignored.
   557  Line: 1 Col: 56 Unexpected end tag (tbody). Ignored.
   558  Line: 1 Col: 61 Unexpected end tag (td). Ignored.
   559  Line: 1 Col: 69 Unexpected end tag (tfoot). Ignored.
   560  Line: 1 Col: 74 Unexpected end tag (th). Ignored.
   561  Line: 1 Col: 82 Unexpected end tag (thead). Ignored.
   562  Line: 1 Col: 87 Unexpected end tag (tr). Ignored.
   563  Line: 1 Col: 87 Unexpected end of file. Expected table content.
   564  #document
   565  | <html>
   566  |   <head>
   567  |   <body>
   568  |     <table>
   569  
   570  #data
   571  </table><tr>
   572  #errors
   573  Line: 1 Col: 8 Unexpected end tag (table). Ignored.
   574  Line: 1 Col: 12 Unexpected end of file. Expected table content.
   575  #document-fragment
   576  table
   577  #document
   578  | <tbody>
   579  |   <tr>
   580  
   581  #data
   582  <body></body></html>
   583  #errors
   584  Line: 1 Col: 20 Unexpected html end tag in inner html mode.
   585  Line: 1 Col: 20 Unexpected EOF in inner html mode.
   586  #document-fragment
   587  html
   588  #document
   589  | <head>
   590  | <body>
   591  
   592  #data
   593  <html><frameset></frameset></html> 
   594  #errors
   595  Line: 1 Col: 6 Unexpected start tag (html). Expected DOCTYPE.
   596  #document
   597  | <html>
   598  |   <head>
   599  |   <frameset>
   600  |   " "
   601  
   602  #data
   603  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"><html></html>
   604  #errors
   605  Line: 1 Col: 50 Erroneous DOCTYPE.
   606  Line: 1 Col: 63 Unexpected end tag (html) after the (implied) root element.
   607  #document
   608  | <!DOCTYPE html "-//W3C//DTD HTML 4.01//EN" "">
   609  | <html>
   610  |   <head>
   611  |   <body>
   612  
   613  #data
   614  <param><frameset></frameset>
   615  #errors
   616  Line: 1 Col: 7 Unexpected start tag (param). Expected DOCTYPE.
   617  Line: 1 Col: 17 Unexpected start tag (frameset).
   618  #document
   619  | <html>
   620  |   <head>
   621  |   <frameset>
   622  
   623  #data
   624  <source><frameset></frameset>
   625  #errors
   626  Line: 1 Col: 7 Unexpected start tag (source). Expected DOCTYPE.
   627  Line: 1 Col: 17 Unexpected start tag (frameset).
   628  #document
   629  | <html>
   630  |   <head>
   631  |   <frameset>
   632  
   633  #data
   634  <track><frameset></frameset>
   635  #errors
   636  Line: 1 Col: 7 Unexpected start tag (track). Expected DOCTYPE.
   637  Line: 1 Col: 17 Unexpected start tag (frameset).
   638  #document
   639  | <html>
   640  |   <head>
   641  |   <frameset>
   642  
   643  #data
   644  </html><frameset></frameset>
   645  #errors
   646  7: End tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
   647  17: Stray “frameset” start tag.
   648  17: “frameset” start tag seen.
   649  #document
   650  | <html>
   651  |   <head>
   652  |   <frameset>
   653  
   654  #data
   655  </body><frameset></frameset>
   656  #errors
   657  7: End tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
   658  17: Stray “frameset” start tag.
   659  17: “frameset” start tag seen.
   660  #document
   661  | <html>
   662  |   <head>
   663  |   <frameset>