Skip to content

Document.getElementById() must return Element, not HTMLElement #19549

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 Oct 28, 2017 · 2 comments
Closed

Document.getElementById() must return Element, not HTMLElement #19549

inad9300 opened this issue Oct 28, 2017 · 2 comments
Labels
Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Suggestion An idea for TypeScript

Comments

@inad9300
Copy link

inad9300 commented Oct 28, 2017

SVG elements are also reachable through document.getElementById(), see https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById.

Other methods may need to be adjusted in the same way. Please, review them.

@mhegazy
Copy link
Contributor

mhegazy commented Oct 30, 2017

Related discussion in #4689

@mhegazy mhegazy added Suggestion An idea for TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels Oct 30, 2017
@inad9300
Copy link
Author

inad9300 commented Nov 5, 2017

I believe this can be closed in favour of #4689.

@inad9300 inad9300 closed this as completed Nov 5, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants