SVGDocument

SVG document interface

When an "svg" element is embedded inline as a component of a document from another namespace, such as when an "svg" element is embedded inline within an XHTML document, then an SVGDocument object will not exist; instead, the root object in the document object hierarchy will be a Document object of a different type, such as an HTMLDocument object.

Interface overview

Also implement None
Methods None
Properties
Normative document SVG 1.1 (2nd Edition)

Properties

Name Type Description
domain DOMString The domain name of the server that served the document, or a null string if the server cannot be identified by a domain name.
referrer DOMString Returns the URI of the page that linked to this page. The value is an empty string if the user navigated to the page directly (not through a link, but, for example, via a bookmark).
rootElement SVGSVGElement The root "svg" in the document hierarchy.
title DOMString The title of a document as specified by the "title" sub-element of the "svg" root element (i.e., <svg><title>Here is the title</title>...</svg>)
URL DOMString The complete URI of the document.

Methods

The SVGDocument interface does not provide any specific methods.

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
SVGDocument Chrome ? Edge ? Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support
Full support
No support
No support
Compatibility unknown
Compatibility unknown