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

Re: [css3-syntax] Parser rewritten as recursive-descent, review requested

From: Mircea Piturca <mircea@typefolly.com>
Date: Wed, 13 Feb 2013 07:53:07 -0800
Message-Id: <95526bcd85f873472784df10c7a874302ac9530d@b6ly-ybcw.accessdomain.com>
To: www-style@w3.org
5.4.5. Consume a list of declarationsident token"Initialize a
temporary list initially filled with the current input token.
Repeatedly consume a component value from the next input token until a
semicolon token or EOF token is returned,"
Having the following CSS:.a { top: 10px } .b { top: 20px; left 30px }
If we parse the first rule declarations: { top: 10px },  the parser
will now have a simple block containing WS, IDENT, COLON, WS,
DIMMENSION, WS .Even if the declaration is valid it will not be
returned at 5.4.5. because neither semicolon or EOF are found, unless
EOF stands here as the end of this simple block stream and not the end
of the overall file.So I think that at 54.5. the declaration should
be returned by an SEMICOLON, EOF or at the end of the block.
Thank you,
Mircea Piturca
www.typefolly.com

Received on Wednesday, 13 February 2013 15:53:37 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:05 GMT