W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: [css3-syntax] Consumation of comment tokens during tree construction

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Wed, 23 Jan 2013 09:45:40 +0100
Message-ID: <50FFA334.8050602@kozea.fr>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Johannes Koch <koch@w3development.de>, www-style list <www-style@w3.org>
Le 23/01/2013 03:05, Tab Atkins Jr. a écrit :
> On Mon, Jan 7, 2013 at 7:35 AM, Johannes Koch <koch@w3development.de> wrote:
>> Hi, here's a question about the Syntax Module Editor's Draft 5 January 2013:
>> Comment tokens are only consumed in '3.5.9. Declaration-important mode'. IMO
>> they should also be consumed in '3.5.2. Top-level mode' together with
>> whitespace tokens and probably in other modes, too.
> Thanks for pointing this out.  I've added consumption clauses to all
> of the parser modes now.  If you don't mind, could you check and
> ensure I didn't make a mistake or miss anything?

As much as I dislike having to do this, shouldn’t some comment tokens be 
preserved where the tree has "lists of primitives" so it can be 
serialized back correctly? Namely:

* at-rule prelude
* selector
* declaration value

Example of pathological input:
border: 1px/**/solid

Simon Sapin
Received on Wednesday, 23 January 2013 08:46:08 UTC

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