W3C home > Mailing lists > Public > www-style@w3.org > December 2015

Re: [css-syntax] 4.3.11. Consume a name?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 9 Dec 2015 11:21:45 -0800
Message-ID: <CAAWBYDA=4sQpOQDoH1bkGC3HioYa+y9yFb+PQp-Eu9shbk6KEQ@mail.gmail.com>
To: "Hiep, H.A." <h.a.hiep@student.vu.nl>
Cc: www-style list <www-style@w3.org>
On Mon, Nov 30, 2015 at 5:41 AM, Hiep, H.A. <h.a.hiep@student.vu.nl> wrote:
> The specification reads:
>
> ``Repeatedly consume the next input code point from the stream:''
>
> And whenever the code point does not match the two clauses mentioned below,
>
> ``anything else
>     Return result.''
>
> I believe that this description wrong. The current code point should be reconsumed, before returning the result, and preventing that a non-matching symbol from the input stream is eaten by the algorithm. A counter-example:
>
> #ident{
> }
>
> would then first consume the "#", which triggers the `Consume a name'-algorithm. It then continues with the `name code point'-path, all the way up to "{". Here it returns result, while "{" is still consumed.
>
> If I may suggest a better wording, it would be:
>
> ``anything else
>     Reconsume the current input code point and return result.''
>
> See:
> http://www.w3.org/TR/css-syntax-3/#reconsume-the-current-input-code-point
> http://www.w3.org/TR/css-syntax-3/#consume-a-name

The /TR version is, as usual, out of date.  This issue has been fixed
in the Editors Draft at
<https://drafts.csswg.org/css-syntax/#consume-name> for quite a while.
^_^

~TJ
Received on Wednesday, 9 December 2015 19:22:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:59 UTC