<!DOCTYPE html>
<html>
<body>
<p>This test ensures WebKit does not crash when user modifies the contents of search fields in the design mode.
WebKit should not crash and you should see PASS below:</p>
<input type="search">
<script>

if (window.testRunner)
    testRunner.dumpAsText();

document.designMode = 'on';
document.getElementsByTagName('input')[0].focus();
document.execCommand('delete', false, null);

document.write('PASS');

</script>
</body>
</html>
