SVG element interface
All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement
interface.
Interface overview
Also implement | See generic DOM {{ domxref("Element") }} interface. |
---|---|
Methods | None |
Properties |
|
Normative document | SVG 1.1 (2nd Edition) |
Properties
Name | Type | Description |
---|---|---|
id | {{ domxref("DOMString") }} | The value of the {{ SVGAttr("id") }} attribute on the given element, or the empty string if id is not present. |
xmlbase | {{ domxref("DOMString") }} | Corresponds to attribute {{ SVGAttr("xml:base") }} on the given element. |
ownerSVGElement | {{ domxref("SVGSVGElement") }} | The nearest ancestor {{ SVGElement("svg") }} element. |
viewportElement | {{ domxref("SVGElement") }} | The element which established the current viewport. Often, the nearest ancestor {{ SVGElement("svg") }} element. |
Methods
The SVGElement
interface do not provide any specific methods.
Browser compatibility
{{ CompatibilityTable() }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{ CompatVersionUnknown() }} | {{ CompatVersionUnknown() }} | 9.0 | {{ CompatVersionUnknown() }} | {{ CompatVersionUnknown() }} |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{ CompatNo() }} | {{ CompatVersionUnknown() }} | {{ CompatUnknown() }} | {{ CompatVersionUnknown() }} | {{ CompatVersionUnknown() }} |
See also
- DOM {{ SVGElement("element") }} reference