blob: 8180f92fa19f9d211ee167b7ae3042edce4d1111 [file] [log] [blame]
<html>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.onload = function() {
var selection = window.getSelection();
selection.selectAllChildren(document);
selection.collapseToEnd();
var element = document.activeElement;
var parent = element.parentNode;
document.open();
if (selection.containsNode(element, true))
document.write("FAIL: selection.containsNode should return false");
else
document.write("PASS");
document.close();
}
</script>
</html>