blob: a7d7581b5766ac5d892cb5f0c700e65cef288526 [file] [log] [blame]
<body contenteditable="true"></body>
<script>
var sel = window.getSelection();
sel.setPosition(document.body, 0);
document.execCommand("InsertText", false, "This tests for a bug where selecting a word would select the line break and word before it. Only the word in the paragraph below should be selected:");
document.execCommand("InsertParagraph");
document.execCommand("InsertText", false, "foo");
sel.modify("extend", "backward", "word");
</script>