<!DOCTYPE html>
<html>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
<p>
This is to test a usecase in which caret position after deletion and the destination position coincides.
To pass this testcase it should not crash.
<div contenteditable="true" id="div"><hkern><span contenteditable="false"><dl>000A0<script>
var sel = window.getSelection();
sel.setPosition(div, div.childNodes.length);
document.execCommand("Delete");
</script>
