tor-browser

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

test010.xhtml (816B)


      1 <?xml version="1.0"?>
      2 <!--
      3 Any copyright is dedicated to the Public Domain.
      4 http://creativecommons.org/licenses/publicdomain/
      5 -->
      6 <window id="main"
      7        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      8        style="background-color: green">
      9  <?xml-stylesheet href="test010.css" type="text/css"?>
     10  <script>
     11  function assert(x, msg) {
     12    if(!x) {
     13      dump("assertion failed! " + msg + "\n");
     14      document.getElementById("main").style.backgroundColor = "red";
     15    }
     16  }
     17  
     18  try {
     19    assert(document.firstChild.id == "main", "nothing in prolog");
     20    var winEl = document.documentElement;
     21    assert(winEl.childNodes[0].nodeName == "xml-stylesheet", "xml-stylesheet PI is in the correct place");
     22  } catch(e) {
     23    dump(e);
     24    assert(false, e);
     25    throw e;
     26  }
     27  </script>
     28 </window>