SVGDiscardElement

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The SVGDiscardElement interface is an interface for the deprecated <discard> element.

Note that it does not provide access to the specific attributes of the <discard> element (begin and href).

Instance properties

This interface also inherits properties from its parent, SVGAnimationElement.

Instance methods

Inherits methods from its parent interface, SVGAnimationElement.

Specifications

Specification
SVG Animations Level 2
# InterfaceSVGDiscardElement

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
SVGDiscardElement
Deprecated
Chrome – No support
Chrome 34 – 80 (Release date: 2014-04-08)
footnote Removed in 81 and later
Edge – No support
Edge 79 – 80 (Release date: 2020-01-15)
footnote Removed in 81 and later
Firefox – No support
Firefox 136 – 138 (Release date: 2025-03-04)
footnote Removed in 139 and later
Opera – No support
Opera 21 – 67 (Release date: 2014-05-06)
footnote Removed in 68 and later
Safari – No support
Safari
footnote No support
Chrome Android – No support
Chrome Android 34 – 80 (Release date: 2014-04-02)
footnote Removed in 81 and later
Firefox for Android – No support
Firefox for Android 136 – 138 (Release date: 2025-03-04)
footnote Removed in 139 and later
Opera Android – No support
Opera Android 21 – 57 (Release date: 2014-04-22)
footnote Removed in 58 and later
Safari on iOS – No support
Safari on iOS
footnote No support
Samsung Internet – No support
Samsung Internet 2 – 12.1 (Release date: 2014-10-17)
footnote Removed in 13 and later
WebView Android – No support
WebView Android 37 – 80 (Release date: 2014-09-03)
footnote Removed in 81 and later
WebView on iOS – No support
WebView on iOS
footnote No support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Deprecated. Not for use in new websites.