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 '<' and '>' to nonsafeChars #81

Merged
merged 1 commit into from
Feb 24, 2017
Merged

add '<' and '>' to nonsafeChars #81

merged 1 commit into from
Feb 24, 2017

Conversation

superyyrrzz
Copy link
Contributor

Anchorjs will fail Bootstrap's Scrollspy when the generated id contains < or >, because it has special meaning in CSS. See jQuery's Selectors. All the meta-charactors mentioned( !"#$%&'()*+,./:;<=>?@[\]^`{|}~) have been included in anchorjs's nonsafeChars, except < and >. I suggest adding them for better compatibility.

@bryanbraun
Copy link
Owner

Thanks for the PR. I should be able to look at this later this week. 👍

@bryanbraun
Copy link
Owner

Just tested this out. It looks great! I'll updating our tests to include these characters, and merge it.

I probably won't release a new version of the library immediately, since it's a possible breaking change for existing URLs and I'd like to batch the release with a couple other updates with breaking changes.

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