Skip to content
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 sensitive :contains()? #116

Open
facelessuser opened this issue Feb 22, 2019 · 2 comments
Open

Case sensitive :contains()? #116

facelessuser opened this issue Feb 22, 2019 · 2 comments
Labels
C: css-custom CSS custom selectors. P: maybe Pending approval of low priority request. T: feature Feature.

Comments

@facelessuser
Copy link
Owner

facelessuser commented Feb 22, 2019

This issue will explore the possibility of a case insensitive :contains(). Since we are thinking about expanding :contains() to allow lists, it may make sense to try and do something like what attribute selectors do: :contains(text i). Or maybe we need to create our own custom pseudo class that implements a case insensitive version, such as :icontains().

Nothing currently is settled, and whether this gets implemented or not and what the name of the pseudo-class would be is still up in the air.

@facelessuser facelessuser added T: feature Feature. selectors C: css-custom CSS custom selectors. P: maybe Pending approval of low priority request. labels Feb 22, 2019
@facelessuser
Copy link
Owner Author

I guess you could get away with something like :contains(text i, "more text" i). It is easy enough to parse, just not sure how I feel about it though.

@gir-bot gir-bot removed the selectors label Nov 1, 2019
@facelessuser
Copy link
Owner Author

While this may still be worth doing, if we decide to move forward with #175, you could work around this with case insensitive regex. Going either way with these is non-standard. We can do one or both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: css-custom CSS custom selectors. P: maybe Pending approval of low priority request. T: feature Feature.
Projects
None yet
Development

No branches or pull requests

2 participants