blob: d0d8ff53a6ad1267742bb7d9ecbf32dddc9cb9f2 [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpEditingCallbacks();
testRunner.dumpAsText();
}
</script>
<p>This tests the pruning that delete does when the it merges two paragraphs when the selection to delete spans multiple blocks.</p>
<p>You should see:<br>b<b>ar<br>baz</b></p>
<div id="test" contenteditable="true">boo<b><div>bar</div><div>baz</div></b></div>
<script>
var s = window.getSelection();
var e = document.getElementById("test");
s.setPosition(e, 0);
s.modify("move", "forward", "character");
s.modify("extend", "forward", "line");
document.execCommand("Delete");
</script>