tor-browser

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

372094-1.xhtml (1002B)


      1 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
      2 <head>
      3 <script>
      4 <![CDATA[
      5 
      6 function init()
      7 {
      8  setTimeout(function()
      9  {
     10    targetWindow = window.frames[0];
     11    targetDocument = targetWindow.document;
     12    targetDocument.body.appendChild(targetDocument.importNode(document.getElementById('rootish'), true));
     13    targetDocument.designMode = 'on';
     14    setTimeout(boom, 30);
     15  }, 30); 
     16 }
     17 
     18 function boom()
     19 {
     20  var r = targetDocument.createRange();
     21  r.setStart(targetDocument.getElementById("bar"), 0);
     22  r.setEnd(targetDocument.getElementById("baz").firstChild, 0);
     23  targetWindow.getSelection().addRange(r);
     24  
     25  targetDocument.execCommand("indent", false, null);
     26  
     27  document.documentElement.removeAttribute("class");
     28 }
     29 
     30 ]]>
     31 </script>
     32 </head>
     33 
     34 <body onload="init()">
     35 
     36  <iframe srcdoc="<html></html>" style="width: 95%; height: 500px;"/>
     37 
     38 <div id="rootish">
     39  <div>Foo</div>
     40  <div id="bar">Bar</div>
     41  <div><select><option id="baz">baz</option></select></div>
     42 </div>
     43 
     44 </body>
     45 </html>