<head>
<style>
+body { overflow:hidden; }
.editing {
border: solid red 50px;
font-size: 24px;
function editingTest() {
var elem = document.getElementById("test-2");
var selection = window.getSelection();
- selection.setPosition(elem.firstChild, 2);
+ selection.collapse(elem.firstChild, 2);
extendSelectionForwardByCharacterCommand();
}