document.getElementsByName should return NodeListOf<HTMLElement> #7709
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
According to the HTML Specification,
document.getElementsByName
applies only to HTML elements that have aname
attribute, unlikedocument.getElementById
,document.getElementsByTagName
anddocument.getElementsByClassName
which are defined in the core DOM specification. Therefore,document.getElementsByName
should returnNodeListOf<HTMLElement>
instead ofNodeListOf<Element>
.TypeScript Version:
1.8.5
The text was updated successfully, but these errors were encountered: