tor-browser

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

503531-1.html (673B)


      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 emptyText = document.createTextNode('x');
      7  document.body.appendChild(emptyText);
      8 
      9  var sel = window.getSelection();
     10  sel.removeAllRanges();
     11  var range = document.createRange();
     12  range.selectNode(emptyText);
     13  sel.addRange(range);
     14  sel.collapseToStart();
     15 
     16  emptyText.nodeValue='';
     17  
     18  setTimeout(function(){document.documentElement.className = '';}, 50)
     19 }
     20 </script>
     21 </head>
     22 <body contenteditable="true" onload="document.body.focus(); boom()">
     23 <div>BLOCK</div>
     24 </body>
     25 </html>