Skip to content

DOM Inspector: Fallback to .childNodes when .children not present#2242

Merged
gorhill merged 1 commit intogorhill:masterfrom
nicole-ashley:svg-children-logger-fix
Feb 28, 2017
Merged

DOM Inspector: Fallback to .childNodes when .children not present#2242
gorhill merged 1 commit intogorhill:masterfrom
nicole-ashley:svg-children-logger-fix

Conversation

@nicole-ashley
Copy link
Contributor

When the browser does not support .children on the svgRoot element (MS Edge, for example), filter childNodes for elements and use that list instead.

Happy to take feedback on the implementation, or location of the helper function to match code style, etc.

When the browser does not support .children on the svgRoot element
(MS Edge, for example), filter childNodes for elements and use that
list instead.
@nicole-ashley
Copy link
Contributor Author

@gorhill, any thoughts on this one?

@gorhill gorhill merged commit a121f22 into gorhill:master Feb 28, 2017
@gorhill
Copy link
Owner

gorhill commented Feb 28, 2017

Sorry, forgot about this. Looks good to me, thanks.

@nicole-ashley
Copy link
Contributor Author

It was over Christmas, I don't blame you. Thanks!

@nicole-ashley nicole-ashley deleted the svg-children-logger-fix branch February 28, 2017 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants