<!DOCTYPE html> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
</script> | |
<body contenteditable> | |
<details open> | |
<p>FAIL</p> | |
</details> | |
<script> | |
var p = document.querySelector("p"); | |
var selection = window.getSelection(); | |
selection.selectAllChildren(p); | |
document.execCommand("InsertText", false, "PASS"); | |
</script> |