-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Scrollspy Doesn't Support Chinese ID Targets #10205
Comments
Sorry, we no longer support v2.x.x. You can ask for help on the mailing list though; see the README for a link. |
To avoid raising a duplicate issue I will reply this one directly. The problem still exists in 3.0. |
Please remove the docs CSS and upgrade the example to a JS Bin or JSFiddle. |
Done. Here's the example on JS Bin: http://jsbin.com/evETOjA/6/edit?html,output |
Confirm came across this too, with Thai character |
Is this all due to https://github.com/twbs/bootstrap/blob/master/js/scrollspy.js#L61 : |
hm… yeah this was written with the old html4 stuff in mind http://www.w3.org/TR/html4/types.html#type-id
looks like html5 is much more chill with diff chars in id's tho http://mathiasbynens.be/notes/html5-id-class i'll push a fix in the next few min |
Hello, I found Scrollspy doesn't support Chinese ID Targets.
In order to reproduce the bug, I post a gist. It looks almost the same to the example from official Doc. A slight difference is that I modify one element's id("mdo") into a Chinese ID ("艾姆滴欧").
When you view the html file in your browser, you can see that it can spy all the target elements except that element with Chinese ID.
The text was updated successfully, but these errors were encountered: