...

Text file src/golang.org/x/net/html/testdata/webkit/tests10.dat

Documentation: golang.org/x/net/html/testdata/webkit

     1#data
     2<!DOCTYPE html><svg></svg>
     3#errors
     4#document
     5| <!DOCTYPE html>
     6| <html>
     7|   <head>
     8|   <body>
     9|     <svg svg>
    10
    11#data
    12<!DOCTYPE html><svg></svg><![CDATA[a]]>
    13#errors
    14(1,28) expected-dashes-or-doctype
    15#new-errors
    16(1:35) cdata-in-html-content
    17#document
    18| <!DOCTYPE html>
    19| <html>
    20|   <head>
    21|   <body>
    22|     <svg svg>
    23|     <!-- [CDATA[a]] -->
    24
    25#data
    26<!DOCTYPE html><body><svg></svg>
    27#errors
    28#document
    29| <!DOCTYPE html>
    30| <html>
    31|   <head>
    32|   <body>
    33|     <svg svg>
    34
    35#data
    36<!DOCTYPE html><body><select><svg></svg></select>
    37#errors
    38(1,34) unexpected-start-tag-in-select
    39(1,40) unexpected-end-tag-in-select
    40#document
    41| <!DOCTYPE html>
    42| <html>
    43|   <head>
    44|   <body>
    45|     <select>
    46
    47#data
    48<!DOCTYPE html><body><select><option><svg></svg></option></select>
    49#errors
    50(1,42) unexpected-start-tag-in-select
    51(1,48) unexpected-end-tag-in-select
    52#document
    53| <!DOCTYPE html>
    54| <html>
    55|   <head>
    56|   <body>
    57|     <select>
    58|       <option>
    59
    60#data
    61<!DOCTYPE html><body><table><svg></svg></table>
    62#errors
    63(1,33) foster-parenting-start-tag
    64#document
    65| <!DOCTYPE html>
    66| <html>
    67|   <head>
    68|   <body>
    69|     <svg svg>
    70|     <table>
    71
    72#data
    73<!DOCTYPE html><body><table><svg><g>foo</g></svg></table>
    74#errors
    75(1,33) foster-parenting-start-tag
    76#document
    77| <!DOCTYPE html>
    78| <html>
    79|   <head>
    80|   <body>
    81|     <svg svg>
    82|       <svg g>
    83|         "foo"
    84|     <table>
    85
    86#data
    87<!DOCTYPE html><body><table><svg><g>foo</g><g>bar</g></svg></table>
    88#errors
    89(1,33) foster-parenting-start-tag
    90#document
    91| <!DOCTYPE html>
    92| <html>
    93|   <head>
    94|   <body>
    95|     <svg svg>
    96|       <svg g>
    97|         "foo"
    98|       <svg g>
    99|         "bar"
   100|     <table>
   101
   102#data
   103<!DOCTYPE html><body><table><tbody><svg><g>foo</g><g>bar</g></svg></tbody></table>
   104#errors
   105(1,40) foster-parenting-start-tag
   106#document
   107| <!DOCTYPE html>
   108| <html>
   109|   <head>
   110|   <body>
   111|     <svg svg>
   112|       <svg g>
   113|         "foo"
   114|       <svg g>
   115|         "bar"
   116|     <table>
   117|       <tbody>
   118
   119#data
   120<!DOCTYPE html><body><table><tbody><tr><svg><g>foo</g><g>bar</g></svg></tr></tbody></table>
   121#errors
   122(1,44) foster-parenting-start-tag
   123#document
   124| <!DOCTYPE html>
   125| <html>
   126|   <head>
   127|   <body>
   128|     <svg svg>
   129|       <svg g>
   130|         "foo"
   131|       <svg g>
   132|         "bar"
   133|     <table>
   134|       <tbody>
   135|         <tr>
   136
   137#data
   138<!DOCTYPE html><body><table><tbody><tr><td><svg><g>foo</g><g>bar</g></svg></td></tr></tbody></table>
   139#errors
   140#document
   141| <!DOCTYPE html>
   142| <html>
   143|   <head>
   144|   <body>
   145|     <table>
   146|       <tbody>
   147|         <tr>
   148|           <td>
   149|             <svg svg>
   150|               <svg g>
   151|                 "foo"
   152|               <svg g>
   153|                 "bar"
   154
   155#data
   156<!DOCTYPE html><body><table><tbody><tr><td><svg><g>foo</g><g>bar</g></svg><p>baz</td></tr></tbody></table>
   157#errors
   158#document
   159| <!DOCTYPE html>
   160| <html>
   161|   <head>
   162|   <body>
   163|     <table>
   164|       <tbody>
   165|         <tr>
   166|           <td>
   167|             <svg svg>
   168|               <svg g>
   169|                 "foo"
   170|               <svg g>
   171|                 "bar"
   172|             <p>
   173|               "baz"
   174
   175#data
   176<!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g></svg><p>baz</caption></table>
   177#errors
   178#document
   179| <!DOCTYPE html>
   180| <html>
   181|   <head>
   182|   <body>
   183|     <table>
   184|       <caption>
   185|         <svg svg>
   186|           <svg g>
   187|             "foo"
   188|           <svg g>
   189|             "bar"
   190|         <p>
   191|           "baz"
   192
   193#data
   194<!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g><p>baz</table><p>quux
   195#errors
   196(1,65) unexpected-html-element-in-foreign-content
   197#document
   198| <!DOCTYPE html>
   199| <html>
   200|   <head>
   201|   <body>
   202|     <table>
   203|       <caption>
   204|         <svg svg>
   205|           <svg g>
   206|             "foo"
   207|           <svg g>
   208|             "bar"
   209|         <p>
   210|           "baz"
   211|     <p>
   212|       "quux"
   213
   214#data
   215<!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g>baz</table><p>quux
   216#errors
   217(1,73) unexpected-end-tag
   218(1,73) expected-one-end-tag-but-got-another
   219#document
   220| <!DOCTYPE html>
   221| <html>
   222|   <head>
   223|   <body>
   224|     <table>
   225|       <caption>
   226|         <svg svg>
   227|           <svg g>
   228|             "foo"
   229|           <svg g>
   230|             "bar"
   231|           "baz"
   232|     <p>
   233|       "quux"
   234
   235#data
   236<!DOCTYPE html><body><table><colgroup><svg><g>foo</g><g>bar</g><p>baz</table><p>quux
   237#errors
   238(1,43) foster-parenting-start-tag svg
   239(1,66) unexpected HTML-like start tag token in foreign content
   240(1,66) foster-parenting-start-tag
   241(1,67) foster-parenting-character
   242(1,68) foster-parenting-character
   243(1,69) foster-parenting-character
   244#document
   245| <!DOCTYPE html>
   246| <html>
   247|   <head>
   248|   <body>
   249|     <svg svg>
   250|       <svg g>
   251|         "foo"
   252|       <svg g>
   253|         "bar"
   254|     <p>
   255|       "baz"
   256|     <table>
   257|       <colgroup>
   258|     <p>
   259|       "quux"
   260
   261#data
   262<!DOCTYPE html><body><table><tr><td><select><svg><g>foo</g><g>bar</g><p>baz</table><p>quux
   263#errors
   264(1,49) unexpected-start-tag-in-select
   265(1,52) unexpected-start-tag-in-select
   266(1,59) unexpected-end-tag-in-select
   267(1,62) unexpected-start-tag-in-select
   268(1,69) unexpected-end-tag-in-select
   269(1,72) unexpected-start-tag-in-select
   270(1,83) unexpected-table-element-end-tag-in-select-in-table
   271#document
   272| <!DOCTYPE html>
   273| <html>
   274|   <head>
   275|   <body>
   276|     <table>
   277|       <tbody>
   278|         <tr>
   279|           <td>
   280|             <select>
   281|               "foobarbaz"
   282|     <p>
   283|       "quux"
   284
   285#data
   286<!DOCTYPE html><body><table><select><svg><g>foo</g><g>bar</g><p>baz</table><p>quux
   287#errors
   288(1,36) unexpected-start-tag-implies-table-voodoo
   289(1,41) unexpected-start-tag-in-select
   290(1,44) unexpected-start-tag-in-select
   291(1,51) unexpected-end-tag-in-select
   292(1,54) unexpected-start-tag-in-select
   293(1,61) unexpected-end-tag-in-select
   294(1,64) unexpected-start-tag-in-select
   295(1,75) unexpected-table-element-end-tag-in-select-in-table
   296#document
   297| <!DOCTYPE html>
   298| <html>
   299|   <head>
   300|   <body>
   301|     <select>
   302|       "foobarbaz"
   303|     <table>
   304|     <p>
   305|       "quux"
   306
   307#data
   308<!DOCTYPE html><body></body></html><svg><g>foo</g><g>bar</g><p>baz
   309#errors
   310(1,40) expected-eof-but-got-start-tag
   311(1,63) unexpected-html-element-in-foreign-content
   312#document
   313| <!DOCTYPE html>
   314| <html>
   315|   <head>
   316|   <body>
   317|     <svg svg>
   318|       <svg g>
   319|         "foo"
   320|       <svg g>
   321|         "bar"
   322|     <p>
   323|       "baz"
   324
   325#data
   326<!DOCTYPE html><body></body><svg><g>foo</g><g>bar</g><p>baz
   327#errors
   328(1,33) unexpected-start-tag-after-body
   329(1,56) unexpected-html-element-in-foreign-content
   330#document
   331| <!DOCTYPE html>
   332| <html>
   333|   <head>
   334|   <body>
   335|     <svg svg>
   336|       <svg g>
   337|         "foo"
   338|       <svg g>
   339|         "bar"
   340|     <p>
   341|       "baz"
   342
   343#data
   344<!DOCTYPE html><frameset><svg><g></g><g></g><p><span>
   345#errors
   346(1,30) unexpected-start-tag-in-frameset
   347(1,33) unexpected-start-tag-in-frameset
   348(1,37) unexpected-end-tag-in-frameset
   349(1,40) unexpected-start-tag-in-frameset
   350(1,44) unexpected-end-tag-in-frameset
   351(1,47) unexpected-start-tag-in-frameset
   352(1,53) unexpected-start-tag-in-frameset
   353(1,53) eof-in-frameset
   354#document
   355| <!DOCTYPE html>
   356| <html>
   357|   <head>
   358|   <frameset>
   359
   360#data
   361<!DOCTYPE html><frameset></frameset><svg><g></g><g></g><p><span>
   362#errors
   363(1,41) unexpected-start-tag-after-frameset
   364(1,44) unexpected-start-tag-after-frameset
   365(1,48) unexpected-end-tag-after-frameset
   366(1,51) unexpected-start-tag-after-frameset
   367(1,55) unexpected-end-tag-after-frameset
   368(1,58) unexpected-start-tag-after-frameset
   369(1,64) unexpected-start-tag-after-frameset
   370#document
   371| <!DOCTYPE html>
   372| <html>
   373|   <head>
   374|   <frameset>
   375
   376#data
   377<!DOCTYPE html><body xlink:href=foo><svg xlink:href=foo></svg>
   378#errors
   379#document
   380| <!DOCTYPE html>
   381| <html>
   382|   <head>
   383|   <body>
   384|     xlink:href="foo"
   385|     <svg svg>
   386|       xlink href="foo"
   387
   388#data
   389<!DOCTYPE html><body xlink:href=foo xml:lang=en><svg><g xml:lang=en xlink:href=foo></g></svg>
   390#errors
   391#document
   392| <!DOCTYPE html>
   393| <html>
   394|   <head>
   395|   <body>
   396|     xlink:href="foo"
   397|     xml:lang="en"
   398|     <svg svg>
   399|       <svg g>
   400|         xlink href="foo"
   401|         xml lang="en"
   402
   403#data
   404<!DOCTYPE html><body xlink:href=foo xml:lang=en><svg><g xml:lang=en xlink:href=foo /></svg>
   405#errors
   406#document
   407| <!DOCTYPE html>
   408| <html>
   409|   <head>
   410|   <body>
   411|     xlink:href="foo"
   412|     xml:lang="en"
   413|     <svg svg>
   414|       <svg g>
   415|         xlink href="foo"
   416|         xml lang="en"
   417
   418#data
   419<!DOCTYPE html><body xlink:href=foo xml:lang=en><svg><g xml:lang=en xlink:href=foo />bar</svg>
   420#errors
   421#document
   422| <!DOCTYPE html>
   423| <html>
   424|   <head>
   425|   <body>
   426|     xlink:href="foo"
   427|     xml:lang="en"
   428|     <svg svg>
   429|       <svg g>
   430|         xlink href="foo"
   431|         xml lang="en"
   432|       "bar"
   433
   434#data
   435<svg></path>
   436#errors
   437(1,5) expected-doctype-but-got-start-tag
   438(1,12) unexpected-end-tag
   439(1,12) unexpected-end-tag
   440(1,12) expected-closing-tag-but-got-eof
   441#document
   442| <html>
   443|   <head>
   444|   <body>
   445|     <svg svg>
   446
   447#data
   448<div><svg></div>a
   449#errors
   450(1,5) expected-doctype-but-got-start-tag
   451(1,16) unexpected-end-tag
   452(1,16) end-tag-too-early
   453#document
   454| <html>
   455|   <head>
   456|   <body>
   457|     <div>
   458|       <svg svg>
   459|     "a"
   460
   461#data
   462<div><svg><path></div>a
   463#errors
   464(1,5) expected-doctype-but-got-start-tag
   465(1,22) unexpected-end-tag
   466(1,22) end-tag-too-early
   467#document
   468| <html>
   469|   <head>
   470|   <body>
   471|     <div>
   472|       <svg svg>
   473|         <svg path>
   474|     "a"
   475
   476#data
   477<div><svg><path></svg><path>
   478#errors
   479(1,5) expected-doctype-but-got-start-tag
   480(1,22) unexpected-end-tag
   481(1,28) expected-closing-tag-but-got-eof
   482#document
   483| <html>
   484|   <head>
   485|   <body>
   486|     <div>
   487|       <svg svg>
   488|         <svg path>
   489|       <path>
   490
   491#data
   492<div><svg><path><foreignObject><math></div>a
   493#errors
   494(1,5) expected-doctype-but-got-start-tag
   495(1,43) unexpected-end-tag
   496(1,43) end-tag-too-early
   497(1,44) expected-closing-tag-but-got-eof
   498#document
   499| <html>
   500|   <head>
   501|   <body>
   502|     <div>
   503|       <svg svg>
   504|         <svg path>
   505|           <svg foreignObject>
   506|             <math math>
   507|               "a"
   508
   509#data
   510<div><svg><path><foreignObject><p></div>a
   511#errors
   512(1,5) expected-doctype-but-got-start-tag
   513(1,40) end-tag-too-early
   514(1,41) expected-closing-tag-but-got-eof
   515#document
   516| <html>
   517|   <head>
   518|   <body>
   519|     <div>
   520|       <svg svg>
   521|         <svg path>
   522|           <svg foreignObject>
   523|             <p>
   524|               "a"
   525
   526#data
   527<!DOCTYPE html><svg><desc><div><svg><ul>a
   528#errors
   529(1,40) unexpected-html-element-in-foreign-content
   530(1,41) expected-closing-tag-but-got-eof
   531#document
   532| <!DOCTYPE html>
   533| <html>
   534|   <head>
   535|   <body>
   536|     <svg svg>
   537|       <svg desc>
   538|         <div>
   539|           <svg svg>
   540|           <ul>
   541|             "a"
   542
   543#data
   544<!DOCTYPE html><svg><desc><svg><ul>a
   545#errors
   546(1,35) unexpected-html-element-in-foreign-content
   547(1,36) expected-closing-tag-but-got-eof
   548#document
   549| <!DOCTYPE html>
   550| <html>
   551|   <head>
   552|   <body>
   553|     <svg svg>
   554|       <svg desc>
   555|         <svg svg>
   556|         <ul>
   557|           "a"
   558
   559#data
   560<!DOCTYPE html><p><svg><desc><p>
   561#errors
   562(1,32) expected-closing-tag-but-got-eof
   563#document
   564| <!DOCTYPE html>
   565| <html>
   566|   <head>
   567|   <body>
   568|     <p>
   569|       <svg svg>
   570|         <svg desc>
   571|           <p>
   572
   573#data
   574<!DOCTYPE html><p><svg><title><p>
   575#errors
   576(1,33) expected-closing-tag-but-got-eof
   577#document
   578| <!DOCTYPE html>
   579| <html>
   580|   <head>
   581|   <body>
   582|     <p>
   583|       <svg svg>
   584|         <svg title>
   585|           <p>
   586
   587#data
   588<div><svg><path><foreignObject><p></foreignObject><p>
   589#errors
   590(1,5) expected-doctype-but-got-start-tag
   591(1,50) unexpected-end-tag
   592(1,53) expected-closing-tag-but-got-eof
   593#document
   594| <html>
   595|   <head>
   596|   <body>
   597|     <div>
   598|       <svg svg>
   599|         <svg path>
   600|           <svg foreignObject>
   601|             <p>
   602|             <p>
   603
   604#data
   605<math><mi><div><object><div><span></span></div></object></div></mi><mi>
   606#errors
   607(1,6) expected-doctype-but-got-start-tag
   608(1,71) expected-closing-tag-but-got-eof
   609#document
   610| <html>
   611|   <head>
   612|   <body>
   613|     <math math>
   614|       <math mi>
   615|         <div>
   616|           <object>
   617|             <div>
   618|               <span>
   619|       <math mi>
   620
   621#data
   622<math><mi><svg><foreignObject><div><div></div></div></foreignObject></svg></mi><mi>
   623#errors
   624(1,6) expected-doctype-but-got-start-tag
   625(1,83) expected-closing-tag-but-got-eof
   626#document
   627| <html>
   628|   <head>
   629|   <body>
   630|     <math math>
   631|       <math mi>
   632|         <svg svg>
   633|           <svg foreignObject>
   634|             <div>
   635|               <div>
   636|       <math mi>
   637
   638#data
   639<svg><script></script><path>
   640#errors
   641(1,5) expected-doctype-but-got-start-tag
   642(1,28) expected-closing-tag-but-got-eof
   643#document
   644| <html>
   645|   <head>
   646|   <body>
   647|     <svg svg>
   648|       <svg script>
   649|       <svg path>
   650
   651#data
   652<table><svg></svg><tr>
   653#errors
   654(1,7) expected-doctype-but-got-start-tag
   655(1,12) unexpected-start-tag-implies-table-voodoo
   656(1,22) eof-in-table
   657#document
   658| <html>
   659|   <head>
   660|   <body>
   661|     <svg svg>
   662|     <table>
   663|       <tbody>
   664|         <tr>
   665
   666#data
   667<math><mi><mglyph>
   668#errors
   669(1,6) expected-doctype-but-got-start-tag
   670(1,18) expected-closing-tag-but-got-eof
   671#document
   672| <html>
   673|   <head>
   674|   <body>
   675|     <math math>
   676|       <math mi>
   677|         <math mglyph>
   678
   679#data
   680<math><mi><malignmark>
   681#errors
   682(1,6) expected-doctype-but-got-start-tag
   683(1,22) expected-closing-tag-but-got-eof
   684#document
   685| <html>
   686|   <head>
   687|   <body>
   688|     <math math>
   689|       <math mi>
   690|         <math malignmark>
   691
   692#data
   693<math><mo><mglyph>
   694#errors
   695(1,6) expected-doctype-but-got-start-tag
   696(1,18) expected-closing-tag-but-got-eof
   697#document
   698| <html>
   699|   <head>
   700|   <body>
   701|     <math math>
   702|       <math mo>
   703|         <math mglyph>
   704
   705#data
   706<math><mo><malignmark>
   707#errors
   708(1,6) expected-doctype-but-got-start-tag
   709(1,22) expected-closing-tag-but-got-eof
   710#document
   711| <html>
   712|   <head>
   713|   <body>
   714|     <math math>
   715|       <math mo>
   716|         <math malignmark>
   717
   718#data
   719<math><mn><mglyph>
   720#errors
   721(1,6) expected-doctype-but-got-start-tag
   722(1,18) expected-closing-tag-but-got-eof
   723#document
   724| <html>
   725|   <head>
   726|   <body>
   727|     <math math>
   728|       <math mn>
   729|         <math mglyph>
   730
   731#data
   732<math><mn><malignmark>
   733#errors
   734(1,6) expected-doctype-but-got-start-tag
   735(1,22) expected-closing-tag-but-got-eof
   736#document
   737| <html>
   738|   <head>
   739|   <body>
   740|     <math math>
   741|       <math mn>
   742|         <math malignmark>
   743
   744#data
   745<math><ms><mglyph>
   746#errors
   747(1,6) expected-doctype-but-got-start-tag
   748(1,18) expected-closing-tag-but-got-eof
   749#document
   750| <html>
   751|   <head>
   752|   <body>
   753|     <math math>
   754|       <math ms>
   755|         <math mglyph>
   756
   757#data
   758<math><ms><malignmark>
   759#errors
   760(1,6) expected-doctype-but-got-start-tag
   761(1,22) expected-closing-tag-but-got-eof
   762#document
   763| <html>
   764|   <head>
   765|   <body>
   766|     <math math>
   767|       <math ms>
   768|         <math malignmark>
   769
   770#data
   771<math><mtext><mglyph>
   772#errors
   773(1,6) expected-doctype-but-got-start-tag
   774(1,21) expected-closing-tag-but-got-eof
   775#document
   776| <html>
   777|   <head>
   778|   <body>
   779|     <math math>
   780|       <math mtext>
   781|         <math mglyph>
   782
   783#data
   784<math><mtext><malignmark>
   785#errors
   786(1,6) expected-doctype-but-got-start-tag
   787(1,25) expected-closing-tag-but-got-eof
   788#document
   789| <html>
   790|   <head>
   791|   <body>
   792|     <math math>
   793|       <math mtext>
   794|         <math malignmark>
   795
   796#data
   797<math><annotation-xml><svg></svg></annotation-xml><mi>
   798#errors
   799(1,6) expected-doctype-but-got-start-tag
   800(1,54) expected-closing-tag-but-got-eof
   801#document
   802| <html>
   803|   <head>
   804|   <body>
   805|     <math math>
   806|       <math annotation-xml>
   807|         <svg svg>
   808|       <math mi>
   809
   810#data
   811<math><annotation-xml><svg><foreignObject><div><math><mi></mi></math><span></span></div></foreignObject><path></path></svg></annotation-xml><mi>
   812#errors
   813(1,6) expected-doctype-but-got-start-tag
   814(1,144) expected-closing-tag-but-got-eof
   815#document
   816| <html>
   817|   <head>
   818|   <body>
   819|     <math math>
   820|       <math annotation-xml>
   821|         <svg svg>
   822|           <svg foreignObject>
   823|             <div>
   824|               <math math>
   825|                 <math mi>
   826|               <span>
   827|           <svg path>
   828|       <math mi>
   829
   830#data
   831<math><annotation-xml><svg><foreignObject><math><mi><svg></svg></mi><mo></mo></math><span></span></foreignObject><path></path></svg></annotation-xml><mi>
   832#errors
   833(1,6) expected-doctype-but-got-start-tag
   834(1,153) expected-closing-tag-but-got-eof
   835#document
   836| <html>
   837|   <head>
   838|   <body>
   839|     <math math>
   840|       <math annotation-xml>
   841|         <svg svg>
   842|           <svg foreignObject>
   843|             <math math>
   844|               <math mi>
   845|                 <svg svg>
   846|               <math mo>
   847|             <span>
   848|           <svg path>
   849|       <math mi>

View as plain text