AdguardTeam / ExtendedCss

A TypeScript library for non-standard element selecting — :contains(), :matches-css(), etc., and applying CSS styles with extended properties.
GNU General Public License v3.0
65 stars 9 forks source link

Rules with insensitive attribute don't work #104

Closed AdamWr closed 2 years ago

AdamWr commented 4 years ago

It seems that rules with insensitive attribute don't work. For example: adguard.com#?#body:has(div[class="page" i]) or adguard.com#?#div[class="page" i]

Screenshot ![image](https://user-images.githubusercontent.com/29142494/76771874-49466580-67a0-11ea-8c35-35b8669b3b47.png)

Rule like this: adguard.com##body div[class="page" i] or adguard.com##div[class="page" i] works fine.

Screenshot ![image](https://user-images.githubusercontent.com/29142494/76772040-890d4d00-67a0-11ea-8e08-799596c57cb4.png)
slavaleleka commented 4 years ago

Sizzle does not support case-insensitive attribute so we can not fix it with ease now

slavaleleka commented 4 years ago

merged into https://github.com/AdguardTeam/ExtendedCss/issues/110

ameshkov commented 2 years ago

Let’s reopen it and implement at least a temporary solution. At least we could discard these rules.