The read-only ownerDocument property of the Node interface returns the top-level document object of the node.
ownerDocument
external Document? get ownerDocument;