tor-browser

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

bug989012-1-ref.html (632B)


      1 <html class="reftest-wait">
      2  <head>
      3    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      4    <script src="/tests/SimpleTest/EventUtils.js"></script>
      5  </head>
      6  <body onload="start()">
      7    <div onfocus="done()" contenteditable>foo<img alt="IMAGE">bar</div>
      8    <script>
      9      var div = document.querySelector("div");
     10      function start() {
     11        div.focus();
     12      }
     13      function done() {
     14        var sel = getSelection();
     15        // Set the caret right before "bar"
     16        sel.collapse(div.lastChild, 0);
     17        document.documentElement.removeAttribute("class");
     18      }
     19    </script>
     20  </body>
     21 </html>