-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Version 4.1.2 and 4.1.3 breaks collapse data-target, if id starts with a number #27018
Comments
See: #26968 (comment)
From https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
|
Hmm, there seems to be some confusion with the spec:
...but thanks. That does clear it up. |
@morganwillcock It technically does work... but you have to escape it in a very awkward fashion. For example: <input id="98d777f385d3dfec8815d20f7496026dc"> It would be: document.querySelector('#\\39 8d777f385d3dfec8815d20f7496026dc'); See: http://mathiasbynens.be/notes/css-escapes
|
Ah right. Thank you for the link! |
It seems that versions past 4.1.1 have stopped my collapsed elements from being identified. The id numbers are generated through templating and are actually md5 hashes, this was previously fine but now these don't work when the id starts with a number.
i.e.
data-target="#98d777f385d3dfec8815d20f7496026dc"
has stopped workingdata-target="#9"
doesn't workdata-target="#a98d777f385d3dfec8815d20f7496026dc"
is finedata-target="#a9"
is fineDowngrading to 4.1.1 makes everything work again.
Operating system: Debian 9 x64
Browser and version: Firefox 52.9 (ESR)
Test case: https://jsbin.com/mezetokase/edit?html,output
The text was updated successfully, but these errors were encountered: