blob: 30fea6b963a0885c4a7726434d0ca20fac21fcca [file] [log] [blame]
<script>
if (window.layoutTestController)
layoutTestController.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"><b><div style="border: 1px solid red; padding: 5px">bar</div></b></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>