layout/base/tests/bug602141-3.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE HTML><html><head>
     2   <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     3 </head>
     4 <body>
     5 noteditable<span id="x" contenteditable="true" spellcheck="false">navigable|unnavigable</span><br />
     6 <script>
     7   // Position the caret after "|"
     8   var sel = window.getSelection();
     9   sel.removeAllRanges();
    10   var range = document.createRange();
    11   var x = document.getElementById('x');
    12   var t = x.firstChild;
    13   range.setStart(t, 10);
    14   range.setEnd(t, 10);
    15   sel.addRange(range);
    16   x.focus();
    18   sendKey('RIGHT'); // Try to move the caret one position to the right
    19 </script>
    20 </body>
    21 </html>

mercurial