AdguardTeam / AdguardTeam/ExtendedCss
Some rules with ':not(:has())' don't work correctly
- 主要言語
- TypeScript
- スター
- 71
- フォーク
- 11
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Related issue - https://github.com/AdguardTeam/AdguardFilters/issues/140279
Steps to reproduce:
1. Add this rule:
```adblock
example.org#?#div:not(:has(img, input, iframe, h1, p))
```
2. Go to - https://example.org/
Website is blank, but it shouldn't be.
It looks like that `ExtendedCss.query('div:not(:has(img, input, iframe, h1, p))')` returns one `div`, but `document.querySelectorAll('div:not(:has(img, input, iframe, h1, p))')` returns empty `NodeList`.
Screenshot

By the way, it looks like that even if rule is added without `?`, like this:
```adblock
example.org##div:not(:has(img, input, iframe, h1, p))
```
then it's still treated as an Extended CSS rule, but I think it shouldn't be.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。