Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A single reverse solidus before EOF is tokenized incorrectly #228

Open
romainmenke opened this issue Jan 2, 2023 · 0 comments
Open

A single reverse solidus before EOF is tokenized incorrectly #228

romainmenke opened this issue Jan 2, 2023 · 0 comments

Comments

@romainmenke
Copy link

romainmenke commented Jan 2, 2023

csstree tokenizes this as a delim token with value \ which is incorrect.

Example :

<div style="--foo:\">

In Chrome this has : cssText: "--foo:�;"

This is tokenized as :

  1. \ before EOF starts a valid escape
  2. consume an ident
  3. EOF
  4. return U+FFFD REPLACEMENT CHARACTER

https://www.w3.org/TR/css-syntax-3/#consume-an-escaped-code-point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant