tor-browser

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

503531-1-ref.html (623B)


      1 <html class="reftest-wait"><head>
      2    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      3    <title>Testcase #1 for bug 503531</title>
      4 <script>
      5 function boom() {
      6  var caret = document.getElementById('caret');
      7 
      8  var sel = window.getSelection();
      9  sel.removeAllRanges();
     10  var range = document.createRange();
     11  range.selectNode(caret);
     12  sel.addRange(range);
     13  sel.collapseToStart();
     14 
     15  setTimeout(function(){document.documentElement.className = '';}, 50)
     16 }
     17 </script>
     18 </head>
     19 <body contenteditable="true" onload="document.body.focus(); boom()">
     20 <div>BLOCK</div>
     21 <div id="caret"></div>
     22 </body>
     23 </html>