tor-browser

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

bug644428-1.html (505B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <script src="/tests/SimpleTest/EventUtils.js"></script>
      5  </head>
      6  <body onload="setupCaret()" spellcheck="false">
      7    <div contenteditable>a<span>b</span>c </div>
      8    <script>
      9      function setupCaret() {
     10        var div = document.querySelector("div");
     11        div.focus();
     12        var sel = window.getSelection();
     13        sel.collapse(div, 3);
     14        synthesizeKey("KEY_Backspace");
     15        synthesizeKey("KEY_Backspace");
     16      }
     17    </script>
     18  </body>
     19 </html>