If the anchor and focus nodes are not within the same document, we can't use them for a selection range. Found by Domato.