getSVGDocument

The getSVGDocument() method of the HTMLObjectElement interface returns the Document object of the embedded SVG.

MDN Reference