<p>This tests Selection::removeAllRanges().</p> | |
<div id="div">This should not be selected.</div> | |
<script> | |
if (window.layoutTestController) { | |
window.layoutTestController.dumpEditingCallbacks(); | |
window.layoutTestController.dumpAsText(); | |
} | |
var sel = window.getSelection(); | |
var div = document.getElementById("div"); | |
div.focus(); | |
document.execCommand("SelectAll"); | |
sel.removeAllRanges(); | |
</script> |