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

Re: Treatment of unterminated string literal in CSS parser

From: Eli Friedman <sharparrow1@yahoo.com>
Date: Thu, 23 Aug 2007 20:56:46 -0700 (PDT)
To: Ian Hickson <ian@hixie.ch>, www-style@w3.org
Message-ID: <535823.98834.qm@web52107.mail.re2.yahoo.com>

So in the example from 4.2:
  @media screen {
    p:before { content: 'Hello

Should the declaration be dropped?

-Eli

--- Ian Hickson <ian@hixie.ch> wrote:

> 
> 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.  
> `._.-(,_..'--(,_..'`-.;.'
> 
> 



       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
Received on Friday, 24 August 2007 03:57:00 GMT

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