-
Notifications
You must be signed in to change notification settings - Fork 83
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
##x:has-text({)
and ##x:has-text([)
no support backslash
#2316
Comments
Use quotes when there are characters tripping the parser:
|
OK, maybe someone remember create PR with second line after stable CSSTree Parser. |
This works too to prevent the parser from tripping:
However uBO would have to remove the backslashes. Currently in 1.44.4 it does it only for parentheses |
It's just not possible, the parser refuses to parse when it encounters weird characters sequences sometimes found in |
Prerequisites
I tried to reproduce the issue when...
Description
I detected one uBo Annoyances filter no longer works in uBo dev 1.44.5b12: https://github.com/uBlockOrigin/uAssets/blob/7246847cc17438dc7a2ad5c494667574f5627daf/filters/annoyances.txt#L4483
A specific URL where the issue occurs.
N/A - filter can by outdated
Steps to Reproduce
world4.eu##style:has-text(body:after{content:):remove()
Expected behavior
Support backslash instead rewrite to to regex:
/body:after\{content:/
IMO no need improve gorhill/uBlock@a71b71e - I mean support legacy version without edit filter file.
Actual behavior
Filter marked as invalid and no remove "node".
uBO version
1.44.5b12
Browser name and version
Firefox 106b8
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: