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

Re: [css-syntax] value grammar, <value> type and browser implementations

From: L. David Baron <dbaron@dbaron.org>
Date: Tue, 5 Feb 2013 20:27:04 -0700
To: Franรงois REMY <francois.remy.dev@outlook.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-ID: <20130206032704.GD10481@crum.dbaron.org>
On Tuesday 2013-02-05 20:21 -0700, L. David Baron wrote:
> I think the main argument for wanting a loose syntax is that there's
> less to validate during the initial parsing (and finding the extent
> of the variable).  I believe that with the current grammar, all the
> implementation needs to do is track (), [], and {}, and:
>  * check that they are balanced
>  * when the stack is empty, look for ; and } as a terminator
>  * when the stack is empty, reject CDO and CDC (though I proposed
>    right after the end of today's meeting, and in
>    http://lists.w3.org/Archives/Public/www-style/2013Feb/0196.html ,
>    that we eliminate this).

Sorry, I missed a fourth item:

 * reject anything with BAD_STRING, BAD_URI, and BAD_COMMENT tokens

-David

-- 
๐„ž   L. David Baron                         http://dbaron.org/   ๐„‚
๐„ข   Mozilla                           http://www.mozilla.org/   ๐„‚
Received on Wednesday, 6 February 2013 03:27:29 GMT

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