tor-browser

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

bug1524266-1.html (718B)


      1 <!doctype html>
      2 <html class="reftest-wait">
      3 <title>Caret doesn't get stuck in a select element inside an editor</title>
      4 <script src="/tests/SimpleTest/EventUtils.js"></script>
      5 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6 <style>
      7  div:focus {
      8    outline: 3px solid blue;
      9  }
     10 </style>
     11 <div contenteditable="true" spellcheck="false">
     12  xx
     13  <select>
     14    <option value="">Placeholder</option>
     15  </select>
     16  xxx
     17 </div>
     18 <script>
     19 SimpleTest.waitForFocus(function() {
     20  document.querySelector('[contenteditable="true"]').focus();
     21  requestAnimationFrame(function() {
     22    for (let i = 0; i < 7; ++i)
     23      synthesizeKey("KEY_ArrowRight");
     24    document.documentElement.removeAttribute("class");
     25  });
     26 });
     27 </script>