Hm, `rangeToSelection` will then be called two times in a row, here and in the current two users of this method. Could the current `anchorNode` and `anchorOffset` not be passed in to this method instead?