Wrong index signature on HTMLSelectElement
#24084
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
Milestone
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.The text was updated successfully, but these errors were encountered: