tor-browser

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

046.html (563B)


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