blob: 3521fc9f51b4702d9d1d2aad093d3be8b30b4551 [file] [log] [blame]
<script>
if (window.layoutTestController)
layoutTestController.dumpEditingCallbacks();
</script>
<style>
div {
border: 1px solid red;
margin: 2px;
}
</style>
<p>The code in paste that prevents block nesting had a bug where the order of pasted paragraphs could be reversed.</p>
<div id="test" contenteditable="true"><br></div>
<script>
var s = window.getSelection();
var e = document.getElementById("test");
s.setPosition(e, 0);
document.execCommand("InsertHTML", false, "There should be an empty line between these two paragraphs.<span><div><br></div></span><div>This paragraph and the empty line should have be in their own divs with a red border.</div>");
</script>