AdguardTeam / AdguardTeam/AdguardForiOS

Filter with `:remove-attr()` breaks other filters in list

Aberta
#2,546 2 comentários 2 reações 1 responsável Reivindicada por @ESurina Ver no GitHub
Bug Priority: P4
Linguagem predominante
Swift
Estrelas
1.7k
Forks
240
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

### Please answer the following questions for yourself before submitting an issue

- [x] Filters were updated before reproducing an issue
- [x] I checked the [knowledge base](https://adguard.com/kb/) and found no answer
- [x] I checked to make sure that this issue has not already been filed

### AdGuard version

4.5.22

### Environment

- OS: 26.6
- Device: iPhone 15

### Ad Blocking

_No response_

### Privacy

_No response_

### Social

_No response_

### Annoyances

_No response_

### Security

_No response_

### Other

_No response_

### Language-specific

_No response_

### Advanced protection for Safari

- [x] yes, I do

### Which DNS server do you use?

DNS protection disabled

### DNS protocol

DNS protection disabled

### Custom DNS

_No response_

### DNS filtering

- [ ] yes, I do

### Custom DNS filter

_No response_

### DNS implementation

DNS protection disabled

### Tunnel mode

DNS protection disabled

### Low-level settings

Bootstrap server:
Fallback server:
Blocking mode, etc:

### Issue Details

Steps to reproduce:
1. Open AdGuard app
2. Open *Filters > Custom* and add filter `https://gist.githubusercontent.com/Stevoisiak/101137e2de7d71849145f2817064e09c/raw/3d8f431a3b6bdd3ef2e54964e8a02f8a8a311787/adguard-ios-remove-bug.txt`
```
! Title: Adguard iOS remove bug
www.reddit.com##reddit-search-small[expanded-composer-enabled]:remove-attr(expanded-composer-enabled)
www.reddit.com###answers-nav-button
```
3. Wait for filters to convert
4. Open `https://www.reddit.com/r/AskReddit/comments/1vzcoet/what_antagonist_from_a_video_game_is_impossible/` in Safari

### Expected Behavior

The sparkling AI button in the header is hidden by rule `www.reddit.com###answers-nav-button`

### Actual Behavior

The sparkling AI button is not hidden. The presence of the uBO-styled `:remove-attr()` rule breaks the `#answers-nav-button` filter.

### Screenshots

AI Button on Reddit
Image

AdGuard filters
Image

### Additional Information

[AdGuard_logs.zip](https://github.com/user-attachments/files/31493513/AdGuard_logs.zip)

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.