W3C home > Mailing lists > Public > www-style@w3.org > June 2014

Re: [css-syntax] CDC-token is ignored

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 9 Jun 2014 13:24:29 -0700
Message-ID: <CAAWBYDBDBK+qxe2gcf77qmBynNazL9DkdKWNmcEESKO+zrG3zw@mail.gmail.com>
To: Beau Brueggemann <beau.brueggemann@gmail.com>
Cc: www-style list <www-style@w3.org>
On Fri, Jun 6, 2014 at 10:00 AM, Beau Brueggemann
<beau.brueggemann@gmail.com> wrote:
> 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.

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

~TJ
Received on Monday, 9 June 2014 20:25:16 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:22 UTC