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

Try to look for a target with "name" attribute #118

Merged
merged 1 commit into from
Apr 23, 2015
Merged

Conversation

varya
Copy link
Contributor

@varya varya commented Apr 23, 2015

Often happens, that anchors are targeting not the elements marked with id attribute but ones which are marked with name. This is expected to work in browser according to the standard. So, I think it is nice to reflect this behavior.

The use case:
Such a markup (with anchors targeting to the names) widely useful when generating md files with table of content. When inserting such a markup in the angular application, the anchors do not work even if using duScroll. If you could merge this pull request, they will work :-) SC5/sc5-styleguide#599

oblador added a commit that referenced this pull request Apr 23, 2015
Try to look for a target with "name" attribute
@oblador oblador merged commit a981c36 into oblador:master Apr 23, 2015
@oblador
Copy link
Owner

oblador commented Apr 23, 2015

Looks good, thanks for the PR!

@varya
Copy link
Contributor Author

varya commented Apr 24, 2015

Great! Could you release please so that I could use your module with this fix?

@oblador
Copy link
Owner

oblador commented Apr 24, 2015

You made your changes in the compiled file unfortunately. I put it in the right file and made it work with the scrollSpy directive and released it as 0.7.0.

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