tor-browser

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

bug1506547-5.html (746B)


      1 <!doctype html>
      2 <html class="reftest-wait">
      3 <title>Caret on editable line with non-editable content and whitespace.</title>
      4 <script src="/tests/SimpleTest/EventUtils.js"></script>
      5 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6 <style>
      7 * { outline: none }
      8 
      9 div {
     10  border: 1px solid red;
     11  margin: 5px;
     12  padding: 2px;
     13 }
     14 </style>
     15 <div contenteditable="true"><span contenteditable="false">xyz </span><br>editable</div>
     16 <script>
     17 SimpleTest.waitForFocus(function() {
     18  const editable = document.querySelector('div[contenteditable="true"]');
     19  editable.focus();
     20  synthesizeMouse(editable, 100, 10, {});
     21  setTimeout(() => {
     22    sendString("xxx");
     23    setTimeout(() => document.documentElement.className = "");
     24  });
     25 });
     26 </script>
     27 </html>