이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 함께 해서 번역을 마치도록 도와 주세요!
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 Element interface. |
---|---|
Methods | None |
Properties |
|
Normative document | SVG 1.1 (2nd Edition) |
Properties
Name | Type | Description |
---|---|---|
id |
DOMString |
The value of the id attribute on the given element, or the empty string if id is not present. |
xmlbase |
DOMString |
Corresponds to attribute xml:base on the given element. |
ownerSVGElement |
SVGSVGElement |
The nearest ancestor |
viewportElement |
SVGElement |
The element which established the current viewport. Often, the nearest ancestor |
Methods
The SVGElement
interface do not provide any specific methods.
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | (Yes) [1] | (Yes) | 9.0 | (Yes) | (Yes) |
Feature | Android | Android Webview | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|
Basic support | No support | (Yes) [1] | (Yes) | ? | (Yes) | (Yes) | (Yes) [1] |
[1] The properties offsetParent
, offsetTop
, offsetLeft
, offsetWidth
, and offsetHeight
are deprecated in Chrome 48.
See also
- DOM
<element>
reference