Skip to content

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

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
michaelbromley opened this issue Feb 23, 2016 · 1 comment
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 Help Wanted You can do this

Comments

@michaelbromley
Copy link

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

@mhegazy mhegazy added Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this labels Feb 23, 2016
@mhegazy mhegazy added this to the Community milestone Feb 23, 2016
@mhegazy
Copy link
Contributor

mhegazy commented Feb 23, 2016

PRs are welcomed. here is some details on contributing lib.d.ts fixes:https://github.com./Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes

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 Help Wanted You can do this
Projects
None yet
Development

No branches or pull requests

3 participants