Skip to content

error TS2339: Property 'control' does not exist on type 'HTMLLabelElement #19477

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
soluml opened this issue Oct 25, 2017 · 3 comments · Fixed by #20177
Closed

error TS2339: Property 'control' does not exist on type 'HTMLLabelElement #19477

soluml opened this issue Oct 25, 2017 · 3 comments · Fixed by #20177
Assignees
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

@soluml
Copy link

soluml commented Oct 25, 2017

TypeScript Version: 2.5.2

Code

const label:HTMLLabelElement = (<HTMLLabelElement>document.querySelector('label'));
const input:HTMLInputElement = (<HTMLInputElement>label.control);

Expected behavior:
Work -> https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement
Actual behavior:
Error TS2339

@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 Oct 25, 2017
@mhegazy
Copy link
Contributor

mhegazy commented Oct 25, 2017

PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes.

@soluml
Copy link
Author

soluml commented Oct 26, 2017

Done: PR #19498

@soluml
Copy link
Author

soluml commented Oct 26, 2017

@mhegazy mhegazy self-assigned this Nov 3, 2017
@mhegazy mhegazy added the Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet label Nov 3, 2017
@mhegazy mhegazy modified the milestones: Community, TypeScript 2.7 Nov 3, 2017
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Nov 21, 2017
@mhegazy mhegazy removed the Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet label Nov 21, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 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 Help Wanted You can do this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants