tor-browser

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

invalidation-1c.html (558B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <head>
      4 <body>
      5 <p id="first">f<span>o</span>o</p>
      6 <p id="second">bar</p>
      7 <script>
      8 document.body.offsetTop;
      9 var p1 = document.getElementById("first");
     10 var p2 = document.getElementById("second");
     11 var selection = window.getSelection();
     12 selection.setBaseAndExtent(p1.firstChild, 0, p1.childNodes.item(1).firstChild, 0);
     13 
     14 function doTest() {
     15  selection.extend(p2.firstChild, 2);
     16  document.documentElement.removeAttribute('class');
     17 }
     18 document.addEventListener("MozReftestInvalidate", doTest);
     19 </script>
     20 </body>
     21 </html>