5 body { overflow: hidden; }
7 border: solid red
50px;
15 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
19 function editingTest() {
20 var elem
= document
.getElementById("test-1");
21 var selection
= window
.getSelection();
22 selection
.collapse(elem
.firstChild
, 0);
23 for (var i
= 0; i
< 4; i
++)
24 moveSelectionForwardByCharacterCommand();
30 <title>Editing Test
</title>
33 <div contenteditable
id=
"root" class=
"editing">
34 <span id=
"test-1">foo
</span> baz