1 <p>This tests for a bug where deleting the contents of an editable root that's inline would introduce a new line.
</p>
2 <div style=
"border: 1px solid black;"><span id=
"span" contenteditable=
"true">foo
</span></div>
5 span
= document
.getElementById("span");
6 selection
= window
.getSelection();
7 selection
.collapse(span
, 0);
8 document
.execCommand("SelectAll");
9 document
.execCommand("Delete");
10 document
.execCommand("InsertText", false, "x");
11 document
.execCommand("Delete");
12 document
.execCommand("InsertText", false, "x");
13 document
.execCommand("Delete");
14 document
.execCommand("InsertText", false, "There shouldn't be any blank lines in the black bordered area.");