-
-
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
alert.js: Avoid calling jQuery('#'), it's a syntax error in jQuery 3.0 #20019
Conversation
Tests passed. Automated cross-browser testing via Sauce Labs and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: dd77ecc (Please note that this is a fully automated comment.) |
@dmethvin Is there a plausible scenario where this could occur that doesn't involve user error? |
I wonder if this is the same error |
I'm honestly not sure but since it was happening in a unit test I assumed it might be done by users as well.
No, although that is also an invalid CSS selector. Special characters in attribute values must be quoted, per the spec. |
Agreed, it's just that it stop working in a patch version build so it was a little unexpected :/ Now, about this PR, do you think you can add a test for this case? |
It was failing an existing test case before this PR, so I figured that fixing that one was enough. The failing test has this markup. |
Oh, cool. Then I have no objection in merging this. @cvrebert push the button if you agree. |
The current v3 docs don't use the On account of compatibility paranoia, I'm okay with merging this. |
Calling jQuery('#') is considered a syntax error in jQuery 3. This change avoids this issue, similar to the change in arrow.js introduced in twbs#20019.
Calling jQuery('#') is considered a syntax error in jQuery 3. This change avoids this issue, similar to the change in arrow.js introduced in twbs/bootstrap#20019.
No description provided.