W3C home > Mailing lists > Public > www-style@w3.org > August 2009

Re: [CSSWG] Minutes and Resolutions 2009-08-05

From: Zack Weinberg <zweinberg@mozilla.com>
Date: Fri, 7 Aug 2009 09:50:25 -0700
To: Andrey Mikhalev <amikhal@abisoft.spb.ru>
Cc: Bert Bos <bert@w3.org>, www-style@w3.org
Message-ID: <20090807095025.52b84abc@mozilla.com>
Andrey Mikhalev <amikhal@abisoft.spb.ru> wrote:
> 
> S { P : url(-my-hack()); }
> 
> current token stream:
>    FUNCTION('url(') + FUNCTION('-my-hack(') + ')' + ')';
> syntactically correct && produce expected parsed tree.
> 
> new token stream:
>    BAD_URI('url(-my-hack') + '(' + ')' + ')';
> i miss something or what it supposed to be?

Yes, that's what is intended.  I don't see a problem.  With or without
my changes,

  S { P : url(-my-hack()); }

is a syntax error (specifically, a "malformed declaration"), so the
only thing that matters from CSS2.1's point of view is that error
recovery behaves the same. And it does. In the current parse, the two
close parens match the two FUNCTION tokens; with my changes, the first
')' matches the '(' and the second ')' matches the BAD_URI.  Either
way, we stop discarding tokens at the ;.

zw
Received on Friday, 7 August 2009 16:51:18 GMT

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