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

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 UTC