1 <p>This tests for a bug when replacing the contents of a floating element. Just its contents should be removed during the replace.
</p>
2 <div contenteditable=
"true">This shouldn't be in the bordered div.
<div id=
"div" style=
"float:left; border: 1px solid blue;">You shouldn't see this.
</div></div>
5 var r
= document
.createRange();
6 var div
= document
.getElementById("div");
8 r
.setEnd(div
, div
.childNodes
.length
);
9 var selection
= window
.getSelection();
10 selection
.addRange(r
);
11 document
.execCommand("InsertHTML", false, "This should be in a floating blue bordered div.")