tor-browser

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

026.html (555B)


      1 <!doctype html>
      2 <title>document.write</title>
      3 <script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script>
      4 <script>
      5 var t = async_test();
      6 t.step(function() {
      7  document.write("<body><span id=");
      8 });
      9 </script>a>Filler Text</span>
     10 <script>
     11 t.step(function() {
     12  assert_equals(document.body.childNodes[0].localName, "span");
     13  assert_equals(document.body.childNodes[0].getAttribute("id"), "a");
     14  assert_equals(document.body.childNodes[0].textContent, "Filler Text");
     15 }
     16 );
     17 t.done();
     18 </script>
     19 <div id="log"></div>