1 <p>This tests for a bug when replacing the contents of a list. The list shouldn't be removed, just its contents.
</p>
2 <div contenteditable=
"true"><ul><li id=
"li">You shouldn't see this.
</li></ul></div>
5 var r
= document
.createRange();
6 var li
= document
.getElementById("li");
8 r
.setEnd(li
, li
.childNodes
.length
);
9 var selection
= window
.getSelection();
10 selection
.addRange(r
);
11 document
.execCommand("InsertHTML", false, "This should be in a list item.")