1 <body contenteditable=
"true"></body>
4 var sel
= window
.getSelection();
5 sel
.collapse(document
.body
, 0);
6 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:");
7 document
.execCommand("InsertParagraph");
8 document
.execCommand("InsertText", false, "foo");
9 sel
.modify("extend", "backward", "word");