[csswg-drafts] [css-syntax] CDC-token is ignored (#3623)

tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-syntax] CDC-token is ignored ==
(migrated from mailing list)

**Beau Brueggemann said:**

> In section 4.3.1, "Consume a token", under subsection "U+002D HYPHEN-MINUS (-)", there is an unreachable portion of the algorithm.
> 
> The second paragraph here states:
> "[...] if the input stream starts with an identifier, [...] consume an ident-like token".
> 
> Section 4.3.10, "Check if three code points would start an identifier", returns true when the first two code points are U+002D.
> 
> This means we can never reach the third paragraph (under the U+002D subsection of 4.3.1) with the two U+002D code points needed for the CDC-token.

---------------

**Tab Atkins said:**

> Good catch! I didn't think of the ordering of those cases when I made
> the change to ident syntax.  Fixed.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3623 using your GitHub account

Received on Thursday, 7 February 2019 19:37:02 UTC