ownerDocument

open external val ownerDocument: Document?(source)

The read-only ownerDocument property of the Node interface returns the top-level document object of the node.

MDN Reference