`.selectedContainer` with non-collapsed selections

Yes. See assignment to `$anchor` just above.