-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
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
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue