tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

0001isvalid.html (2719B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <meta charset=utf-8>
      5    <title>&lt;svg&gt;'s HTML integration points</title>
      6  </head>
      7  <body>
      8    <!-- self-closed elements -->
      9    <svg>
     10      <title/>
     11      <desc/>
     12      <foreignObject height=0 width=0 />
     13    </svg>
     14 
     15    <!-- null-content elements -->
     16    <svg>
     17      <title></title>
     18      <desc></desc>
     19      <foreignObject height=0 width=0></foreignObject>
     20    </svg>
     21 
     22    <!-- just white space -->
     23    <svg>
     24      <title>
     25 
     26      </title>
     27      <desc>
     28 
     29      </desc>
     30      <foreignObject height=0 width=0>
     31 
     32 
     33      </foreignObject>
     34    </svg>
     35 
     36    <!-- plain text -->
     37    <svg>
     38      <title>foo</title>
     39      <desc>foo</desc>
     40      <foreignObject height=0 width=0>foo</foreignObject>
     41    </svg>
     42 
     43    <!-- phrasing content -->
     44    <svg>
     45      <title>
     46        fee
     47        <a href="//example.com/">fi</a>
     48        <em>fo</em>
     49        <svg>
     50          <title>fum</title>
     51        </svg>
     52        <svg>
     53          <title>
     54            <svg>
     55              <title>
     56                <svg>
     57                  <title>Yes, this is somehow totally valid.</title>
     58                </svg>
     59              </title>
     60            </svg>
     61          </title>
     62        </svg>
     63      </title>
     64 
     65      <desc>
     66        fee
     67        <a href="//example.com/">fi</a>
     68        <em>fo</em>
     69        <svg>
     70          <title>fum</title>
     71        </svg>
     72        <svg>
     73          <title>
     74            <svg>
     75              <title>
     76                <svg>
     77                  <title>Yes, this is somehow totally valid.</title>
     78                </svg>
     79              </title>
     80            </svg>
     81          </title>
     82        </svg>
     83      </desc>
     84 
     85      <foreignObject height=0 width=0>
     86        fee
     87        <a href="//example.com/">fi</a>
     88        <em>fo</em>
     89        <svg>
     90          <title>fum</title>
     91        </svg>
     92        <svg>
     93          <title>
     94            <svg>
     95              <title>
     96                <svg>
     97                  <title>Yes, this is somehow totally valid.</title>
     98                </svg>
     99              </title>
    100            </svg>
    101          </title>
    102        </svg>
    103      </foreignObject>
    104    </svg>
    105 
    106    <!-- flow content (<title> cannot have it, it only allows phrasing) -->
    107    <svg>
    108      <desc>
    109        <section>
    110          <h1>Heading</h1>
    111        </section>
    112      </desc>
    113 
    114      <foreignObject height=0 width=0>
    115        <section>
    116          <h1>Heading</h1>
    117        </section>
    118      </foreignObject>
    119    </svg>
    120 
    121    <!-- metadata content not allowable in flow content (<title> and <foreignObject> cannot have this, only <desc>) -->
    122    <svg>
    123      <desc>
    124        <style> /* */ </style>
    125        <link href="/whatever" rel="stylesheet">
    126        <title>I'm an HTML &lt;title&gt;!</title>
    127      </desc>
    128    </svg>
    129  </body>
    130 </html>