Web/API/SVGAnimationElement/targetElement

From Get docs


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

Update compatibility data on GitHub

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
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