HTMLElement.setAttribute's parameters are marked optional; they are not #4407
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
lib.d.ts
defines HTML.setAttribute with a signature of(name?: string, value?: string)
. Neither of the parameters are actually optional and will cause runtime errors on at least Chrome and Firefox.The text was updated successfully, but these errors were encountered: