2010-10-08 23:49:47 +04:00
|
|
|
<!DOCTYPE HTML><html><head>
|
2011-06-29 22:22:39 +04:00
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
2010-10-08 23:49:47 +04: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();
|
|
|
|
|
2011-12-16 17:38:45 +04:00
|
|
|
sendKey('RIGHT'); // Try to move the caret one position to the right
|
2010-10-08 23:49:47 +04:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|