Skip to content

HTMLInputElement::formNoValidate has the wrong type #22367

Closed

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:

Activity

  1. mhegazy commented on Mar 7, 2018

    @mhegazy
    Contributor

    Should be fixed by #22381

  2. added
    FixedA PR has been merged for this issue
    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript
    on Mar 7, 2018
  3. logme1 commented on Mar 9, 2018

    @logme1

    thanks

  4. locked and limited conversation to collaborators on Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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