| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Crash on "createLink" execCommand with plaintext-only</title> | |
| <script> | |
| if (window.testRunner) | |
| testRunner.dumpAsText(); | |
| </script> | |
| </head> | |
| <body contentEditable> | |
| <div contentEditable="plaintext-only">PASS if the browser did not crash.</div> | |
| <script> | |
| document.execCommand("selectAll"); | |
| document.execCommand("createLink", false, "."); | |
| </script> | |
| </body> | |
| </html> |