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

Element.closest impl: use parentNode rather than parentElement #9

Merged
merged 1 commit into from
Aug 25, 2018
Merged

Element.closest impl: use parentNode rather than parentElement #9

merged 1 commit into from
Aug 25, 2018

Conversation

tremby
Copy link
Contributor

@tremby tremby commented Aug 24, 2018

This allows clicks to work as expected in inline SVG elements.

Without this, if you put an inline SVG in the <summary> tag and click it, nothing will happen. This is because parentElement is undefined on SVG elements (at least in IE11, where I'm using this polyfill).

This allows clicks to work as expected in inline SVG elements.
@javan javan merged commit a682e03 into javan:master Aug 25, 2018
@javan
Copy link
Owner

javan commented Aug 25, 2018

Thanks! Just published v2.0.2 with this change.

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.

None yet

2 participants