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

Re: Treatment of unterminated string literal in CSS parser

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 24 Aug 2007 03:09:10 +0000 (UTC)
To: Eli Friedman <sharparrow1@yahoo.com>
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.64.0708240306590.32091@dhalsim.dreamhost.com>

On Thu, 23 Aug 2007, Eli Friedman wrote:
> 
> According to the example in the latest draft of CSS2.1, unterminated 
> string literals appear to be allowed (a "parsing error", but still 
> parsed as a string.)  Is this correct, and if it is, does section 4.1.1 
> need to be updated to reflect that?

They are not allowed. They actually cause the entire declaration to be 
dropped. It's possible 4.1.1 needs to have a new token added for "bogus 
string" or some such, but my understanding is that 4.1.1 describes the 
valid syntax, not the syntax from the parser's point of view.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 24 August 2007 03:09:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:52 GMT