Skip to content

HTMLInputElement::formNoValidate has the wrong type #22367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sheley1998 opened this issue Mar 7, 2018 · 2 comments
Closed

HTMLInputElement::formNoValidate has the wrong type #22367

sheley1998 opened this issue Mar 7, 2018 · 2 comments
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue

Comments

@sheley1998
Copy link

sheley1998 commented Mar 7, 2018

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:

@mhegazy
Copy link
Contributor

mhegazy commented Mar 7, 2018

Should be fixed by #22381

@mhegazy mhegazy added Fixed A PR has been merged for this issue Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels Mar 7, 2018
@mhegazy mhegazy added this to the TypeScript 2.8 milestone Mar 7, 2018
@mhegazy mhegazy closed this as completed Mar 7, 2018
@mhegazy mhegazy added the Bug A bug in TypeScript label Mar 7, 2018
@logme1
Copy link

logme1 commented Mar 9, 2018

thanks

@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

3 participants