HTML DOM
The getSVGDocument() method of the HTMLObjectElement interface returns the Document object of the embedded SVG.
Syntax
getSVGDocument()
Parameters
None.
Return value
A Document.
Examples
const svg = document.getElementById("el").getSVGDocument();
Specifications
Browser compatibility
See also
- HTMLIFrameElement.getSVGDocument
- HTMLEmbedElement.getSVGDocument
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
