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-2");
21 var selection
= window
.getSelection();
22 selection
.collapse(elem
.firstChild
, 2);
23 extendSelectionBackwardByCharacterCommand();
24 moveSelectionForwardByCharacterCommand();
29 <title>Editing Test
</title>
32 <div contenteditable
id=
"root" class=
"editing">
33 <span id=
"test-1">foo
</span><span id=
"test-2" style='display: none;'
>bar
</span> baz