Skip to content

Wrong index signature on HTMLSelectElement #24084

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
inad9300 opened this issue May 12, 2018 · 1 comment
Closed

Wrong index signature on HTMLSelectElement #24084

inad9300 opened this issue May 12, 2018 · 1 comment
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

@inad9300
Copy link

The type definitions for HTMLSelectElement contain the following index signature: [name: string]: any.

The first thing to point out is that I do not find documentation about this index signature, neither on MDN nor in the spec. It does seem to work at least on Firefox, though. If it does what I think, the index signature should point to HTMLOptionElement | HTMLOptGroupElement (alternatively, HTMLElement, if you want to maximize convenience in some way), as these are the only two possible children of a <select> element.

@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 May 14, 2018
@mhegazy mhegazy added this to the Community milestone May 14, 2018
@mhegazy
Copy link
Contributor

mhegazy commented May 14, 2018

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.

@mhegazy mhegazy modified the milestones: Community, TypeScript 3.0 Jun 26, 2018
@mhegazy mhegazy self-assigned this Jun 26, 2018
@mhegazy mhegazy added the Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet label Jun 26, 2018
@mhegazy mhegazy modified the milestones: TypeScript 3.0, TypeScript 3.1 Jul 3, 2018
@mhegazy mhegazy added Fixed A PR has been merged for this issue and removed Fixed A PR has been merged for this issue labels Jul 25, 2018
@mhegazy mhegazy removed the Fixed in TSJS repo Fix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yet label Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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
Projects
None yet
Development

No branches or pull requests

2 participants