<!DOCTYPE html> | |
<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> |