1 <div id=
"description">This tests for a bug where adding content to the end of a fragment that ends with an interchange newline and inserting it would create an extraneous newline at the *start* of pasted content. Below you should see two paragraphs of text followed by two empty paragraphs.
</div>
2 <div id=
"edit" contentEditable=
"true"></div>
6 window
.testRunner
.dumpAsText();
7 edit
= document
.getElementById("edit");
8 window
.getSelection().collapse(edit
, 0);
9 document
.execCommand("InsertHTML", false, "<div>Paragraph one</div><div>Paragraph two</div><br class='Apple-interchange-newline'><div><br></div>");
10 if (window
.testRunner
)
11 document
.body
.innerText
= document
.getElementById("description").innerText
+ "\n\n" + edit
.innerHTML
;