Skip to content

"getElementsByTagName('svg')" does not returns NodeList of SVGSVGElement, but generic NodeList. #1618

Closed
@jsakamoto

Description

@jsakamoto

For example:

var svgs = document.getElementsByTagName('svg');

The expected type of svgs is NodeListOf<SVGSVGElement>, but it is normal NodeList actually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueRevisitAn issue worth coming back to

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions