tor-browser

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

bug602141-3.html (589B)


      1 <!DOCTYPE HTML><html><head>
      2  <script src="/tests/SimpleTest/EventUtils.js"></script>
      3 </head>
      4 <body>
      5 noteditable<span id="x" contenteditable="true" spellcheck="false">navigable|unnavigable</span><br />
      6 <script>
      7  // Position the caret after "|"
      8  var sel = window.getSelection();
      9  sel.removeAllRanges();
     10  var range = document.createRange();
     11  var x = document.getElementById('x');
     12  var t = x.firstChild;
     13  range.setStart(t, 10);
     14  range.setEnd(t, 10);
     15  sel.addRange(range);
     16  x.focus();
     17 
     18  sendKey('RIGHT'); // Try to move the caret one position to the right
     19 </script>
     20 </body>
     21 </html>