`.selectedContainer` with non-collapsed selections

Yes, I am wondering if it might be more efficient and/or more clear to just do `selection.anchorNode.nodeType` instead of `$anchor[0].nodeType`.