2010-10-08 19:49:47 +00:00
|
|
|
<!DOCTYPE HTML><html><head>
|
2011-06-29 18:22:39 +00:00
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
2010-10-08 19:49:47 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2014-01-24 14:18:00 +00:00
|
|
|
noteditable<span id="x" contenteditable="true" spellcheck="false">navigable|unnavigable</span><br />
|
2010-10-08 19:49:47 +00:00
|
|
|
<script>
|
|
|
|
// Position the caret after "|"
|
|
|
|
var sel = window.getSelection();
|
|
|
|
sel.removeAllRanges();
|
|
|
|
var range = document.createRange();
|
|
|
|
var x = document.getElementById('x');
|
|
|
|
var t = x.firstChild;
|
|
|
|
range.setStart(t, 10);
|
|
|
|
range.setEnd(t, 10);
|
|
|
|
sel.addRange(range);
|
|
|
|
x.focus();
|
|
|
|
|
2011-12-16 13:38:45 +00:00
|
|
|
sendKey('RIGHT'); // Try to move the caret one position to the right
|
2010-10-08 19:49:47 +00:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|