blob: afeb08dd852d45d4c775e57d4988c28d2e5e4d5f [file] [log] [blame]
<!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.collapse(div, div.childNodes.length);
document.execCommand("Delete");
</script>