tor-browser

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

bug1263357-3-ref.html (685B)


      1 <!DOCTYPE HTML><html>
      2 <!--
      3 https://bugzilla.mozilla.org/show_bug.cgi?id=1263357
      4 -->
      5 <head>
      6    <meta charset="utf-8">
      7    <title>Testcase #3 for bug 1263357</title>
      8    <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9    <script src="/tests/SimpleTest/EventUtils.js"></script>
     10 </head>
     11 <body>
     12 <div id="editable" contenteditable='true' spellcheck=false style="outline: 1px solid;"><span id="theSpan">text<br></span><br>more</div>
     13 <script>
     14 
     15 function start() {
     16  var sel = window.getSelection();
     17  // Focus on editable block.
     18  theDiv = document.getElementById("editable");
     19  theDiv.focus();
     20  sel.collapse(theDiv, 1);
     21 }
     22 
     23 SimpleTest.waitForFocus(start);
     24 
     25 </script>
     26 </body>
     27 </html>