-
Notifications
You must be signed in to change notification settings - Fork 9
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
Some rules with ':not(:has())' don't work correctly #159
Comments
Judging by overnight testing, I currently get the impression that AdGuard is in practice interpreting |
Maybe it is time to back version compatible with Pale Moon and Basilisk. |
That would unfortunately have been pretty impractical for these kinds of entries, as it'd require something like |
:not(:has())
don't work correctly
Another case: This rule in Easylist Cookie list:
Broke Bloomberg completely: The rule should target |
Also simpler forms of the rule cause the breakage:
|
I think that the issue on |
Ok, copied my comments there. But I'll leave them here as well just in case. |
Related issue - AdguardTeam/AdguardFilters#140279
Steps to reproduce:
Website is blank, but it shouldn't be.
It looks like that
ExtendedCss.query('div:not(:has(img, input, iframe, h1, p))')
returns onediv
, butdocument.querySelectorAll('div:not(:has(img, input, iframe, h1, p))')
returns emptyNodeList
.Screenshot
By the way, it looks like that even if rule is added without
?
, like this:then it's still treated as an Extended CSS rule, but I think it shouldn't be.
The text was updated successfully, but these errors were encountered: