blob: bc0d2416bceb38411c87188b5038a1bbcc2fdfab [file] [log] [blame]
<script>
if (window.layoutTestController)
layoutTestController.dumpEditingCallbacks();
</script>
<p>This is a test to make sure that a placeholder is removed when it is displaced by pasted content.</p>
<div id="test" contenteditable="true"><br class='webkit-block-placeholder'></div>
<script>
var s = window.getSelection();
var e = document.getElementById("test");
s.setPosition(e, 0);
document.execCommand("InsertHTML", false, "First paragraph.<div>Second paragraph.</div>");
</script>