The read-only ownerElement property of the Attr interface returns the Element the attribute belongs to.
ownerElement
external Element? get ownerElement;