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

Add check for use element in getAncestorWithHref_ #423

Open
gilleard opened this issue Aug 23, 2016 · 0 comments
Open

Add check for use element in getAncestorWithHref_ #423

gilleard opened this issue Aug 23, 2016 · 0 comments

Comments

@gilleard
Copy link

If you're using the xlink:href attribute for external svgs, like this:

<a class="spf-link" href="/"><svg><use xlink:href="sprite.svg#logo"></use></svg></a>

Then during clicks nav.getAncestorWithHref_ will return the use element, causing an error later on when assuming the href attribute is a string.

I've used css pointer-events to avoid the problem in my project but wanted to flag the issue.

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

No branches or pull requests

1 participant