Skip to content

HTMLInputElement::formNoValidate has the wrong type #22367

Closed
@sheley1998

Description

@sheley1998

TypeScript Version: 2.7.1

Search Terms:
formNoValidate

Code

const test = document.createElement('input');
test.formNoValidate = true;

Expected behavior:
compiler shouldn't complain since HTMLInputElement::formNoValidate is supposed to be a boolean value

Actual behavior:
compiler reports an error due to the fact that typescript treats HTMLInputElement::formNoValidate as a string instead of a boolean

Playground Link:

Related Issues:

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 issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions