tor-browser

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

035.html (540B)


      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  var s = "<svg><!";
      8  for (var i=0; i<s.length; i++) {
      9    document.write(s[i]);
     10  }
     11 });
     12 </script>[CDATA[Filler Text]]></svg>
     13 <script>
     14 t.step(function() {
     15  assert_equals(document.body.childNodes[0].localName, "svg");
     16  assert_equals(document.body.childNodes[0].textContent, "Filler Text");
     17 }
     18 );
     19 t.done();
     20 </script>
     21 <div id="log"></div>