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

Reverse solidus followed by null #234

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

Reverse solidus followed by null #234

romainmenke opened this issue Jan 7, 2023 · 0 comments

Comments

@romainmenke
Copy link

In javascript this is : \\\x00

I am unsure if this is a bug because I don't know if CSSTree applies the preprocessing steps : https://www.w3.org/TR/css-syntax-3/#input-preprocessing

CSSTree tokenizes as :

{
  type: 'delim-token',
  raw: '\\',
  startIndex: 0,
  endIndex: 1
}
{
  type: 'delim-token',
  raw: '\x00',
  startIndex: 1,
  endIndex: 2
}

When processing an actual replacement character CSSTree tokenizes as :

{
  type: 'ident-token',
  raw: '\\�',
  startIndex: 0,
  endIndex: 2
}

I think the first example with a null char should also be an ident.

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