Skip to content

setAttribute signature too strict #15368

@mightyiam

Description

@mightyiam

TypeScript Version: 2.2.2

elm.setAttribute('disabled', true) // should be allowed
elm.setAttribute('disabled', 1) // should be allowed

Expected behavior:

value
A DOMString containing the value to assign to the attribute. Any non-string value specified is converted automatically into a string.

https://developer.mozilla.org/en/docs/Web/API/Element/setAttribute

Actual behavior:

setAttribute(name: string, value: string): void

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions