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