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

[css-syntax] 4.3.11. Consume a name?

From: Hiep, H.A. <h.a.hiep@student.vu.nl>
Date: Mon, 30 Nov 2015 13:41:31 +0000
Message-ID: <9A559240C1FAFB41B4BD78668C6BB9973984C42F@PEXMB002A.vu.local>
To: www-style@w3.org, www-style@w3.org
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:


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.''

Received on Monday, 7 December 2015 13:04:55 UTC

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