tor-browser

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

iframe_001.html (456B)


      1 <!doctype html>
      2 <title>document.write into iframe</title>
      3 <script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script>
      4 <iframe id="test"></iframe>
      5 <script>
      6 test(
      7 function() {
      8  var iframe = document.getElementById("test");
      9  iframe.contentDocument.write("Filler Text");
     10  iframe.contentDocument.close();
     11  assert_equals(iframe.contentDocument.body.textContent, "Filler Text");
     12 });
     13 </script>
     14 <div id="log"></div>