Skip to content

Conversation

lahmatiy
Copy link
Contributor

@lahmatiy lahmatiy commented Dec 9, 2021

Since double dash -- is a valid identifier by the spec the CDC-token is breaking "round-trip" with parsing now when follows after #, -, number or @:

  • #--> = #-- (hash-token) + > (delim-token)
  • ---> = --- (ident-token) + > (delim-token)
  • number--> = number-- (dimension-token) + > (delim-token)
  • @--> = @-- (at-keyword-token) + > (delim-token)

Since double dash `--` is a valid identifier by the spec the `CDC-token` is breaking "round-trip" with parsing now when follows after `#`, `-`, number or `@`:
* `#-->` = `#--` (hash-token) + `>` (delim-token)
* `--->` = `---` (ident-token) + `>` (delim-token)
* `number-->` = `number--` (dimension-token) + `>` (delim-token)
* `@-->` = `@--` (at-keyword-token) + `>` (delim-token)
@w3cbot
Copy link

w3cbot commented Dec 9, 2021

lahmatiy marked as non substantive for IPR from ash-nazg.

@tabatkins tabatkins merged commit 09b0869 into w3c:main Dec 9, 2021
@tabatkins
Copy link
Member

Oooh good catch, thanks!

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

Successfully merging this pull request may close these issues.

4 participants