getSVGDocument

external fun getSVGDocument(): Document?(source)

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

MDN Reference