Skip to content

Incorrect extended CSS rule causes that JS rules don't work #1147

@AdamWr

Description

@AdamWr

Steps to reproduce

  1. Add these rules:
    example.org#?#body > div[class="":has(h1)
    example.org#%#alert(1);
  2. Go here - http://example.org/

Expected behavior

I think that JS rules should still work.

Actual behavior

JS rules don't work.

The real case is here - AdguardTeam/AdguardFilters#41420
It seems that this rule:

cosmopolitan.lt,moteris.lt,panele.lt,manonamai.lt,tavovaikas.lt,delfi.lt#?#a[href="javascript:void(-1);":-abp-has(a[title="[x] Uždaryti"])

from EasyList Lithuania is inccorect and causes that JS rules don't work.

Screenshot:

image

Your environment

  • AdGuard for Windows 7.2.2943 NIGHTLY (CL 1.5.60)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions