Typescript: Wrong description of document.getElementById parameter

Created on 1 Oct 2020  路  2Comments  路  Source: microsoft/TypeScript

TypeScript Version: 4.0.2

Search Terms:
document getElementById

Expected behavior:
document.getElementById takes one case-sensitive parameter for an element-ID

Described on MDN

Actual behavior:
The tooltip of document.getElementById tells me, that the parameter:

  1. is case-INsensitive
  2. matches element ID & NAME

image

Bug lib.d.ts help wanted

Most helpful comment

I can't even figure out where we got that wrong text from :\

All 2 comments

I can't even figure out where we got that wrong text from :\

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jbondc picture jbondc  路  3Comments

kyasbal-1994 picture kyasbal-1994  路  3Comments

blendsdk picture blendsdk  路  3Comments

Zlatkovsky picture Zlatkovsky  路  3Comments

bgrieder picture bgrieder  路  3Comments