`.selectedContainer` with non-collapsed selections

Yes, `selectedContainer().tagName === 'p'` indeed. It's `childNode` is the text node.