blob: 17f708dc72a1b9cc64f83abb80b4abcc98c4b9aa [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.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>