getSVGDocument

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

MDN Reference