-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Case insensitive :contains? #33
Comments
Having an |
The possible issue with that syntax is
would have different semantics, which is not immediately clear at first glance. If :contains had historically forced the use of quotes, or had a different form (e.g. :contains=) it would be a simpler choice. IMHO icontains is sort of familiar - Django uses it, and there is even a JQuery plugin to supplement its :contains selector called jquery.icontains |
I would only do a case-insensitive search for the second of your examples, but I see your point. The Django example isn't exactly for CSS selectors, but I would be fine with it. As always: Pull requests welcome :) |
Hi @fb55, the code was pretty easy, but I could do with some guidance on adding tests. I assume you've copied tests from sizzle and qwery and so on. Which set should I insert the :icontains tests? |
I would create a new file in the |
Fixed in #34 |
Is there a way to do a case insensitive :contains? If not, would :icontains be an acceptable enhancement? I'm willing to do the coding.
The text was updated successfully, but these errors were encountered: