blob: 76e562c47451575dda11dbdc4e7683f0cf3374a4 [file] [log] [blame]
<!DOCTYPE html>
<body>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<textarea>
text3
</textarea>
<script>
test(() => {
document.querySelector('textarea').focus();
document.execCommand('selectAll');
selection = document.getSelection();
selection.deleteFromDocument();
document.execCommand('InsertText', false, '\n');
}, 'A combination of deleteFromDocument() and InsertText command should not cause check failure in HTMLTextAreaElement.');
</script>
</body>