tor-browser

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

remove-iframe-for-designMode.html (461B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <meta charset="utf-8">
      5 <title>Test for bug 612565 of Mozilla</title>
      6 </head>
      7  <body>
      8    <iframe></iframe>
      9  </body>
     10  <script>
     11    onload = function() {
     12      var i = document.querySelector("iframe");
     13      var doc = i.contentDocument;
     14      doc.body.appendChild(doc.createTextNode("foo"));
     15      doc.designMode = "on";
     16      while (doc.body.firstChild) {
     17        doc.body.firstChild.remove();
     18      }
     19    };
     20  </script>
     21 </html>