-
-
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
invalid selector regression in 5.3.2 #39189
Comments
Thanks for reporting this issue @codylerum. I tried your example in different Bootstrap versions:
So it worked from the following commit fcdfee9 which was a refactoring. The corresponding PR doesn't mention such new support. In v5.3.2, we roll-backed a part of this refactoring commit which broke the fact to handle multiple IDs (see 9900cf3). Maybe I'm wrong, but without much information, I'd say that it worked during this time (v5.3.0 and v5.3.1) by chance. If this analysis is correct, we could try to make it work by modifying the Thoughts @twbs/js-review? (Putting it in v5.3.3 project for now to not forget it) |
@julien-deramond It looks like previously our code that generated this inserted a
|
Some precisions here after a few other quick tests. Considering the CodePen provided by OP, if we execute a simple As pointed out in #39189 (comment), some characters need to be escaped when we want to call #38989 moved the But putting it back escapes We could probably do a workaround here if we are capable of knowing in which case we are and return either the I'll try something next week if nobody finds a solution in between. |
Hello guys. Sorry for the delay, I have pushed a possible solution. Any feedback accepted |
I have this same issue in a different context. In BS 5.3.0, I was able to have a collapse with id "QueueableTasks.Queue". This is desired because it is in reference to CakePHP standard of Example: I do not want to remove the period if possible. |
One thing I wanted to point out is that the selector-engine uses |
Prerequisites
Describe the issue
After updating to Bootstrap 5.3.2 we have errors where modals are failing to open due to the query selector failing as invalid
The target is like
data-bs-target="#j_id22:exampleModal"
. This is a common auto generated identifier from JSF where:
is used as a seperator.This code works in 5.3.1 but fails in 5.3.2
Reduced test cases
Working in 5.3.1: https://codepen.io/codylerum/details/OJrjvBx
Failing in 5.3.2: https://codepen.io/codylerum/pen/WNLEzKz
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
5.3.2
The text was updated successfully, but these errors were encountered: