tor-browser

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

cascade-import-dynamic-004.xht (1044B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3  <head>
      4   <title>Dynamic sheet insertion (&lt;link&gt;)</title>
      5   <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/>
      6   <link rel="reviewer" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
      7   <link rel="help" href="http://www.w3.org/TR/CSS21/selector.html" />
      8   <link rel="match" href="../reference/ref-this-text-should-be-green.xht"/>
      9   <script type="text/javascript" id="script">
     10    var style = document.createElementNS("http://www.w3.org/1999/xhtml", "link");
     11    style.setAttribute("type", "text/css");
     12    style.setAttribute("rel", "stylesheet");
     13    style.setAttribute("href", "support/import-red.css");
     14    document.getElementsByTagName("head")[0].insertBefore(style, document.getElementById("script"));
     15   </script>
     16   <link rel="stylesheet" type="text/css" href="support/import-green.css" />
     17  </head>
     18  <body>
     19   <p class="import">This text should be green.</p>
     20  </body>
     21 </html>