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

Negative zero must be tokenized as -0 #8

Open
romainmenke opened this issue Apr 21, 2024 · 0 comments
Open

Negative zero must be tokenized as -0 #8

romainmenke opened this issue Apr 21, 2024 · 0 comments

Comments

@romainmenke
Copy link

romainmenke commented Apr 21, 2024

https://github.com/keithamus/csslex/blob/7182786dfcd1a553ac60f82d7a66bb4a48607d29/mod.ts#L512C33-L512C38

Apparently I got it wrong and -0 after tokenizing must have an actual negative zero value.

WPT tests were added a few months ago : web-platform-tests/wpt#43430

The tokenizer tests have also been updated to correctly record the expected -0 value in the test corpus.

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