tor-browser

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

bug1109968-1-ref.html (518B)


      1 <html class="reftest-wait">
      2  <body onload="start()">
      3    <div onfocus="done()" contenteditable>foo<div contenteditable="false"><a href="#">bar</a></div>baz</div>
      4    <script>
      5      var div = document.querySelector("div");
      6      function start() {
      7        div.focus();
      8      }
      9      function done() {
     10        var sel = getSelection();
     11        // Set the caret right before "baz"
     12        sel.collapse(div.lastChild, 0);
     13        document.documentElement.removeAttribute("class");
     14      }
     15    </script>
     16  </body>
     17 </html>