Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!DOCTYPE HTML><html><head>
2 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
3 </head>
4 <body>
5 <span contenteditable="true" spellcheck="false">navigable__</span><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>