blob: 95a40bf5d711ce3ee502b29f17ae6ca5fce3c6dd [file] [edit]
<!DOCTYPE html><!-- webkit-test-runner [ LiveRangeSelectionEnabled=false ] -->
<script>
function runTest() {
if (window.testRunner)
testRunner.dumpAsText();
document.querySelector('input').setRangeText('aa', 0, 1, 'end');
getSelection().extend(document.createElement('select'));
document.execCommand('delete', false);
document.body.innerHTML = `<p>This tests invoking deletion after attempting to extend selection to a disconnected node. WebKit should not crash.</p>PASS.`;
}
</script>
<body onload=runTest()>
<input>