Skip to content

Fix ':has()' pseudo-class due to <forgiving-relative-selector-list> #154

@slavaleleka

Description

@slavaleleka

native :has() pseudo-class takes <forgiving-relative-selector-list>
https://www.w3.org/TR/selectors-4/#has-pseudo

but in v2.0 it seems to take <selector-list> which means that all of selectors in the selector list arg are being matched
https://uploads.adguard.org/slbdzdrvx7z36.png

native implementation also does not signal an error on invalid selector in the list arg
https://uploads.adguard.org/slbdzdrve42fv.png

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions