Skip to content

Incorrectly deprecated methods on SVGSVGElement #30368

@jabrouwer82

Description

@jabrouwer82

There are five methods on SVGSVGElement that I believe are falsely marked as deprecated. setCurrentTime, pauseAnimations, unpauseAnimations, animationsPaused, and getCurrentTime.

They're not directly listed on the SVG 2 candidate spec nor the SVG 1.1 to 2 changes document, but are instead listed in the SVG 2 Animation Candidate Document that both of the previously mentioned documents reference.

TypeScript Version:
I'm noticed the issue in 3.1.6, but they seem to be marked deprecated in the repo right now.

Search Terms:
svg SVGSVGElement deprecated setCurrentTime getCurrentTime animationsPaused unpauseAnimation pauseAnimation

Code

const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
svg.setCurrentTime(4)

Expected behavior:
No lint warnings about deprecated methods

Actual behavior:
A linter warning about setCurrentTime being deprecated.

Playground Link:
I don't think the playground shows deprecation messages, but here's a link.

Related Issues:
None that I can tell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions