Skip to content

HTMLElement.setAttribute's parameters are marked optional; they are not #4407

Description

@LPGhatguy

lib.d.ts defines HTML.setAttribute with a signature of (name?: string, value?: string). Neither of the parameters are actually optional and will cause runtime errors on at least Chrome and Firefox.

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 issueHelp WantedYou can do this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions