2010-10-08 12:49:47 -07:00
|
|
|
<!DOCTYPE HTML><html><head>
|
2011-06-29 11:22:39 -07:00
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
2010-10-08 12:49:47 -07:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
noteditable<span id="x" contenteditable="true">navigable|unnavigable</span><br />
|
|
|
|
<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();
|
|
|
|
|
|
|
|
sendKey('RIGHT', window); // Try to move the caret one position to the right
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|