Hello everyone,,
In CSS rules the value of an attribute is case sensitive.
My question:
Is it possible to create filter rules which realize a case insensitivity?
Example:
example.tld##element[attr="/Foo"]
example.tld##element[attr="/foo"]
example.tld##element[attr="/fOo"]
...
I would love to match all those elements with one single line:
example.tld##element[attr="/foo"]
Are there any "options" to realize such a filter rule?
Thanks for your help.
Filter Rule: case insensitiv attribute value
Filter Rule: case insensitiv attribute value
Last edited by Tomkeen on Fri Jan 17, 2020 5:15 am, edited 1 time in total.
Re: Filter Rule: case insensitiv attribute value
Apart from some additions, filters can only be written using CSS selectors that are supported by the browser which Adblock Plus is running in. That means that if modern browsers don't support a certain selector, filters can't use it either.
In this particular case, I found the feature you're searching for in the CSS Selectors Level 4 standard which is still a working draft and therefore still subject to change. According to MDN however, it's already supported by most browsers.
In this particular case, I found the feature you're searching for in the CSS Selectors Level 4 standard which is still a working draft and therefore still subject to change. According to MDN however, it's already supported by most browsers.