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