Skip to content
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

Types in HTMLCollection #6985

Closed
elbarzil opened this issue Feb 9, 2016 · 2 comments
Closed

Types in HTMLCollection #6985

elbarzil opened this issue Feb 9, 2016 · 2 comments
Labels
Question An issue which isn't directly actionable in code

Comments

@elbarzil
Copy link

elbarzil commented Feb 9, 2016

I ran into a problem where

someElement.children[0].children[0]

doesn't work because the result of someElement.children[0] is an Element rather than an HTMLElement. I'm not sure whether there is any situation of dealing with DOM elements in which you'd get something that is an Element but not an HTMLElement. I also see in Issue #4689 that there are some operations where HTMLElement is used for convenience -- maybe this should be included too?

(Apologies if this is a FAQ.)

@RyanCavanaugh
Copy link
Member

SVG elements are not HTMLElements, e.g. http://codepen.io/anon/pen/ZQmPjx

@elbarzil
Copy link
Author

elbarzil commented Feb 9, 2016

Bah. Thanks!

@elbarzil elbarzil closed this as completed Feb 9, 2016
@RyanCavanaugh RyanCavanaugh added the Question An issue which isn't directly actionable in code label Feb 9, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Question An issue which isn't directly actionable in code
Projects
None yet
Development

No branches or pull requests

2 participants