Skip to content

lib.dom.d.ts - HTMLTextAreaElement, HTMLInputElement do not have "minLength" property #7197

Description

@michaelbromley

TypeScript 1.7.5, but also in master:

Code

let nativeTextarea: HTMLTextAreaElement;
nativeTextarea.minLength;

let nativeInput: HTMLInputElement;
nativeInput.minLength;

Expected behavior:
No compiler error.

Actual behavior:
Compiler error: Property 'minLength' does not exist on type 'HTMLTextAreaElement', Property 'minLength' does not exist on type 'HTMLInputElement'

HTML5 spec: https://www.w3.org/TR/html5/forms.html#the-maxlength-and-minlength-attributes

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 issueHelp WantedYou can do this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions