The SVGViewElement
interface provides access to the properties of <view>
elements, as well as methods to manipulate them.
Properties
This interface also inherits properties from its parent interface, SVGElement
.
SVGViewElement.viewTarget
- An
SVGStringList
corresponding to theviewTarget
attribute of the given<view>
element. A list ofDOMString
values which contain the names listed in theviewTarget
attribute. Each of theDOMString
values can be associated with the corresponding element using thegetElementById()
method call.
Methods
This interface doesn't implement any specific methods, but inherits methods from its parent interface, SVGElement
.
Specifications
Specification | Status | Comment |
---|---|---|
Scalable Vector Graphics (SVG) 2 The definition of 'SVGViewElement' in that specification. |
Candidate Recommendation | Removed a mixin SVGExternalResourcesRequired |
Scalable Vector Graphics (SVG) 1.1 (Second Edition) The definition of 'SVGViewElement' in that specification. |
Recommendation | Initial definition |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
SVGViewElement | Chrome Full support Yes | Edge Full support ≤18 | Firefox Full support Yes | IE ? | Opera Full support Yes | Safari Full support Yes | WebView Android Full support Yes | Chrome Android Full support Yes | Firefox Android Full support Yes | Opera Android Full support Yes | Safari iOS Full support Yes | Samsung Internet Android Full support Yes |
viewtarget | Chrome No support ? — 56 | Edge ? | Firefox No support ? — 61 | IE ? | Opera No support ? — 43 | Safari ? | WebView Android No support ? — 56 | Chrome Android No support ? — 56 | Firefox Android No support ? — 61 | Opera Android No support ? — 43 | Safari iOS ? | Samsung Internet Android No support ? — 6.0 |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
- Deprecated. Not for use in new websites.
- Deprecated. Not for use in new websites.