blob: a02eda44c4981d6a392171d0cb50ebf58074f4f0 [file] [log] [blame]
<html>
<body contenteditable="true">
<p>This tests for setting the selection at a position inside the document when the document node is non-editable and the document's body element *is* editable. The expected behavior is to create a selection at [body, 0]. There should be a caret at the start of this paragraph.</p>
</body>
<script>
var sel = window.getSelection();
sel.setPosition(document, 0);
</script>
</html>