tor-browser

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

cascade-import-dynamic-003.xht (929B)


      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;style&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.createElement("style");
     11    var text = document.createTextNode("body { color: red }");
     12    style.appendChild(text);
     13    document.getElementsByTagName("head")[0].insertBefore(style, document.getElementById("script"));
     14   </script>
     15   <style type="text/css">
     16    body { color: green }
     17   </style>
     18  </head>
     19  <body>
     20   <p>This text should be green.</p>
     21  </body>
     22 </html>