Returns the parent element of a DOM node, crossing shadow root boundaries and following slot assignments.