blob: 3a5e4dec1a4e0b3ec1f14299700ddf97567f29d8 [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpEditingCallbacks();
</script>
<p>This tests to see if deletion correctly prunes the containers of the paragraph being moved during a merge. You should see 'foo<b>bar</b>' below.</p>
<div id="test" contenteditable="true"><div>foo</div><div style="border: 1px solid blue; padding: 5px; font-weight: bold;"><div style="border: 1px solid red; padding: 5px">bar</div></div></div>
<script>
var e = document.getElementById("test");
var s = window.getSelection();
s.setPosition(e, 0);
s.modify("move", "forward", "line");
document.execCommand("Delete");
</script>