-
Notifications
You must be signed in to change notification settings - Fork 71
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
DOMException: Failed to execute querySelectorAll #22
Comments
Thanks for pointing it out. With the last update each value is now properly escaped to ensure the creation of a valid CSS selector string. Aside of quotes it takes care of most common |
Thanks for the quick update. |
@autarc the bug still exists but with different case T__T For the elements with weird class names, like:
Library generates selector: That selector could be replaced with |
A restructure of the selector generation is planned for the next version which will cover these and a few more cases. Its going to be released soon, most likely next week. |
The latest version just got released and solves the mentioned issues. As the new approach of finding matches is progressively built on top of general attribute selection its easier to maintain and update in the future 😉 |
This kind of error still exists, but in different place =( Function https://github.com/Autarc/optimal-select/blob/master/src/optimize.js#L134 For
|
@steppefox Extended the check for valid composed selector pattern. Would be useful next time to have a website reference or full example to look it up as the optimizations are using the DOM for comparison as well. |
@autarc problem still exists =((
Function
In https://github.com/Autarc/optimal-select/blob/master/src/optimize.js#L135 |
Need to check if variable partial becomes '>' only, and handle accordingly. |
Occurs when a selector value has quotes in it.
[data="value"]
This can be fixed by escaping quotes.
It may also happen for other special characters but I didn't check.
The text was updated successfully, but these errors were encountered: