The SVGAnimationElement.targetElement
property refers to the element which is being animated. If no target element is being animated (for example, because the href
attribute specifies an unknown element), the value returned is null
.
Syntax
var targetElement = someElement.targetElement;
Specifications
Specification | Status | Comment |
SVG Animations Level 2The definition of 'SVGAnimationElement.targetElement' in that specification. | Editor's Draft | Added null as return value in case that no target element is being animated.
|
Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'SVGAnimationElement.targetElement' in that specification. | Recommendation | Initial definition |
Browser compatibility
The compatibility table in 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.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
targetElement
|
Chrome
Full support Yes |
Edge
Full support 79 |
Firefox
Full support Yes |
IE
No support No |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
Full support Yes |
Chrome Android
Full support Yes |
Firefox Android
? |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
Full support Yes |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
targetElement by Mozilla Contributors is licensed under CC-BY-SA 2.5.