layout/base/tests/bug602141-2-ref.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE HTML><html><head>
     2 </head>
     3 <body>
     4 <span id="x" contenteditable="true" spellcheck="false">navigable__|unnavigable</span><br />
     5 <script>
     6   // Position the caret after "u"
     7   var sel = window.getSelection();
     8   sel.removeAllRanges();
     9   var range = document.createRange();
    10   var x = document.getElementById('x');
    11   var t = x.firstChild;
    12   range.setStart(t, 13);
    13   range.setEnd(t, 13);
    14   sel.addRange(range);
    15   x.focus();
    16 </script>
    17 </body>
    18 </html>

mercurial