I wonder if there is trick or workaround to create case insensitive filters.
For example if I want to filter all ids with the name of advert regardless of its case. In other words, all of the following would match: ADVERT, Advert, ADvert, advert, AdVert and so on.
What should I do?
Case insensitive filter
http://adblockplus.org/en/filters#optio ... match-case — makes the filter only apply to addresses with matching letter case, e.g. the filter */BannerAd.gif$match-case will block http://example.com/BannerAd.gif but not http://example.com/bannerad.gif.[/quote]
[/quote]MonztA wrote:http://adblockplus.org/en/filters#optio ... match-case — makes the filter only apply to addresses with matching letter case, e.g. the filter */BannerAd.gif$match-case will block http://example.com/BannerAd.gif but not http://example.com/bannerad.gif.
Hmm... As far as I know element hiding rules and normal ad blocking rules behave differently. The default for element hiding rules is case sensitive.
That is the part I don't understand.Wladimir Palant wrote:As explained before, element hiding rules depend on CSS - you cannot do anything with them that you cannot do with CSS.
We are trying to detect HTML pages, aren't we? It should be case insensitive. But the fact is Firefox 2 or below is case insensitive. Firefox 3 or higher is case sensitive. If it only depends on CSS only, why does it have such a strange behavior? I'm confused.All Selectors syntax is case-insensitive within the ASCII range (i.e. [a-z] and [A-Z] are equivalent), except for parts that are not under the control of Selectors. The case sensitivity of document language element names, attribute names, and attribute values in selectors depends on the document language. For example, in HTML, element names are case-insensitive, but in XML, they are case-sensitive.
@MonztA
Never mind.

HTML 4.01 defines id and class as case-sensitive: http://www.w3.org/TR/html401/struct/global.html#h-7.5.2
from: https://developer.mozilla.org/en/Case_S ... d_id_Names
The Mozilla document seems rather old though (April 2005), so I don't know why Firefox 2 (October 2006) is still case-insensitive.
from: https://developer.mozilla.org/en/Case_S ... d_id_Names
The Mozilla document seems rather old though (April 2005), so I don't know why Firefox 2 (October 2006) is still case-insensitive.