ownerDocument

open override val ownerDocument: Document(source)

Returns the node document. Returns null for documents.

MDN Reference