-
Notifications
You must be signed in to change notification settings - Fork 77
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
:has-text not allowed inside :is() or :where() #2349
Comments
Given the case provided is contrived, i.e. not a real case world demonstrating this is needed, the incentive to make this work is close to zero. |
Well, this particular case is contrived because it pretended to be easy to test. Using :others() for me saves a lot of time and makes my interface a lot of cleaner. I have been using this a lot, but this is the first time I needed a :has-text() match. So for me this totally makes sense in a real case world scenario where performance and minimalism is pursued. I would be really thankful if this could be added in case it is not a very difficult task. I hope I could help you with that programming part, but I am not a programmer. In any case,, I would like to thank you for your amazing work. |
Here I show you how I clean my interface to enhace performance. It is a real example: I remove every part I don´t need and I only show unread threads and notifications (with just a simple line). I don´t know if this is a real case scenario to be honest, For me it is actually and uBlock helps me a lot doing that and increases efficiency in my work by keeping my interface straighforward. This is a really big forum simplified into 5 items. There are other cases where has-text() would help me to be a lot more precise by adding a powerful filter. |
Well given your case in opening comment, I would just suggest to use:
I am pretty sure I could come up with something equivalent for your specific case if I knew the details. |
Prerequisites
I tried to reproduce the issue when...
Description
:has-text doesn´t work inside :is OR :where
Element picker doesn´t select as expected (1.44.5b15).
In latest stable version (1.44.4) the Element Picker shows an error with the formula provided in the next steps.
In case there is a similar issue, I coldn´t see it really as :is() :where() are conflictive terms to search.
Edit: I just want to make it clear that this does not work under either Element Picker or My Filters section.
A specific URL where the issue occurs.
https://github.com/uBlockOrigin/uBlock-issues/issues
Steps to Reproduce
##:is(.open.octicon,.IssueLabel):others()
Expected behavior
Everything except Open Issue Icons and Enhancement Labels should be selected.
Actual behavior
Nothing is selected
uBO version
1.44.5b15
Browser name and version
Brave: 1.45.118
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: