The getSVGDocument() method of the HTMLEmbedElement interface returns the Document object of the embedded SVG.
getSVGDocument()
HTMLEmbedElement
Document
None.
A Document.
const svg = document.getElementById("el").getSVGDocument();
HTMLIFrameElement.getSVGDocument
HTMLObjectElement.getSVGDocument