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

Rule with pseudo class and with invalid pseudo class causes that element hiding rules do not work #2752

Open
AdamWr opened this issue Mar 19, 2024 · 1 comment
Assignees

Comments

@AdamWr
Copy link
Member

AdamWr commented Mar 19, 2024

AdGuard Extension version

4.3.31

Browser version

Chrome 122

OS version

Windows 11

What filters do you have enabled?

AdGuard Base filter

What Stealth Mode options do you have enabled?

No response

Issue Details

Steps to reproduce:

  1. Add these rules:
example.org##body
example.org##body div:last-child a[href]:invalid-pseudo-class()
  1. Go to - https://example.org/

Expected Behavior

example.org##body rule should be applied and website should be blank.

Screenshots

No response

Additional Information

It seems that problem occurs only if there are more than one pseudo-classes, for example rule like this:

example.org##body div a[href]:invalid-pseudo-class()

doesn't cause a problem.

Issue doesn't occur with opened filtering log.

@krystian3w
Copy link

This should be extendedCSS to avoid use remove-attr scriptlet in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants