-
Notifications
You must be signed in to change notification settings - Fork 80
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
Nested !#if
/!#endif
directives not evaluated properly
#270
Comments
|
Does not seem to be a duplicate, there is no syntax error in the directives -- which is what #183 was about. |
|
If I understand correctly he is saying all divs end up being hidden, while this should not be the case if not using Firefox for Android. |
search bar along with Google logo doesn't get hidden except that everything else is hidden. |
The second condition won't get fulfilled if you're not on Firefox for Android, so I don't see the issue with that. |
@gorhill Do all preparsing directives have to be true for the filter to apply ? |
Yes. However looking at the code, I see that directives which evaluate to false will be ignored if contained in a directive which evaluates to true -- this is a bug. I can't remember what was my thinking when I wrote that code, but my answer to @grenzor in #183 says that I was expecting the code to deal properly with |
!#if
/!#endif
directives not evaluated properly
Possible add in the feature this syntax:
similar proposed by @mapx-
|
Prerequisites
Description
Two conditions for limiting the operation of filters do not work well, the second condition is may not interpreted.
uBlockOrigin/uAssets#3482 - where used two conditions.
A specific URL where the issue occurs
https://www.google.com/search?q=search
Steps to Reproduce
Open expample website
In my filters panel put expample conditions:
and save.
Refresh website - almost all div should be hidden.
The second condition is somewhat ignored and cuts out the content despite the incompatibility of the platfrom.
Expected behavior:
The second condition should be included.
Actual behavior:
The second condition is not included?
Your environment
The text was updated successfully, but these errors were encountered: