Attribute selectors can have namespaces #32

Closed
opened 2026-03-23 12:48:34 +01:00 by SirPepe · 1 comment
SirPepe commented 2026-03-23 12:48:34 +01:00 (Migrated from github.com)

At this point I want to emphasize that I'm not trying to troll you. I just happen to use Lezer and to dig into the obscure parts of the web platform. This litany of issues is the collateral damage of this unfortunate confluence. My apologies. About the bug in question, attribute selectors can have namespaces, and none of the following is parsed correctly:

[namespace|attr=val] { color: red }
[*|attr] { color: yellow }
[|attr] { color: green }

I will try to stop dumpster diving in CSS specs this week so you can put out a new release if you have the time. Thank you for all your hard work 🙃

At this point I want to emphasize that I'm _not_ trying to troll you. I just happen to use Lezer and to dig into the obscure parts of the web platform. This litany of issues is the collateral damage of this unfortunate confluence. My apologies. About the bug in question, attribute selectors can have namespaces, and none of the following is parsed correctly: ```css [namespace|attr=val] { color: red } [*|attr] { color: yellow } [|attr] { color: green } ``` I will try to stop dumpster diving in CSS specs this week so you can put out a new release if you have the time. Thank you for all your hard work 🙃
marijnh commented 2026-03-23 15:07:53 +01:00 (Migrated from github.com)

Glad to hear you're not trolling me. It is apparent that my casual use of CSS has not prepared me for all the subtleties of the grammar (and the specs are, due to being fragmented into modules and levels, not the most helpful). I'm happy to find out about missing syntax, so don't worry about the issue spam.

I've tagged 1.3.3

Glad to hear you're not trolling me. It is apparent that my casual use of CSS has not prepared me for all the subtleties of the grammar (and the specs are, due to being fragmented into modules and levels, not the most helpful). I'm happy to find out about missing syntax, so don't worry about the issue spam. I've tagged 1.3.3
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lezer/css#32
No description provided.