1 <div id=
"description">This tests to see if pasting a single paragraph not in a block at the end of a block just before a paragraph not in a block removes a line break. You should see two separate paragraphs below.
</div>
2 <div id=
"edit" contentEditable=
"true"><div id=
"paragraphOne">Paragraph One
</div>Paragraph two.
</div>
6 window
.testRunner
.dumpAsText();
7 paragraphOne
= document
.getElementById("paragraphOne");
8 // Place the caret at the end of the block that contains the first paragraph.
9 window
.getSelection().collapse(paragraphOne
, paragraphOne
.childNodes
.length
);
11 document
.execCommand("InsertHTML", false, ".");
12 if (window
.testRunner
)
13 document
.body
.innerText
= document
.getElementById("description").innerText
+ "\n" + document
.getElementById("edit").innerHTML
;