1 <p>This tests for a bug where content pasted at the end of a paragraph would be inserted into the next paragraph. You should see 'helloworld' below.
</p>
2 <div id=
"div" contenteditable=
"true">hello
</div>
5 var div
= document
.getElementById("div");
6 var sel
= window
.getSelection();
8 sel
.modify("move", "forward", "word");
9 document
.execCommand("InsertHTML", false, "<span><div>world</div></span>");