Skip to content

[cssom] Please define parsing a group of selectors more clearly #1511

@bzbarsky

Description

@bzbarsky

https://drafts.csswg.org/cssom/#parsing-selectors says to

To parse a group of selectors means to parse the value using the selectors_group production defined in the Selectors specification and return either a group of selectors if parsing did not fail or null if parsing did fail.

but there is no selectors-group in https://drafts.csswg.org/selectors-4/ (it was there in selectors-3). Furthermore, this is vague about how namespace prefixes should be handled, if at all.

Plausible answers are to just reuse https://drafts.csswg.org/selectors-4/#parse-a-selector or define some variant of it which considers the @namespace rules from the relevant sheet or something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions