ownerSVGElement

The ownerSVGElement property of the SVGElement interface reflects the nearest ancestor element. null if the given element is the outermost element.

MDN Reference