Skip to content

Conversation

@krichprollsch
Copy link
Member

@krichprollsch krichprollsch commented Jul 10, 2025

We had the javascript document.querySelectorAll('.\\:popover-open') failing with the error: ExpectedSelector.
This selector searches for class=":popover-open" and not for pseudo class :popover-open thanks to the escaped :.

To fix the issue, I first allowed escaped char to be the first char of an identifier.

But due to #878, in fact the string currently sent to the parser is .:popover-open which is an invalid selector.

So I added a temp hack to accept plain : as a first char of an identifier. This must be removed once #878 is fixed.

#878 doesn't exist, i was fooled by string literal escapes 🤦‍♂️

@krichprollsch krichprollsch merged commit 10fbde8 into main Jul 10, 2025
10 checks passed
@krichprollsch krichprollsch deleted the css-parser-error branch July 10, 2025 23:10
@github-actions github-actions bot locked and limited conversation to collaborators Jul 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants