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

CSS3 syntax

From: John Beisley <greatred@gmail.com>
Date: Sat, 19 Aug 2006 21:08:57 +0100
Message-ID: <8781a3d50608191308g653ed83fkb044ea963de63735@mail.gmail.com>
To: www-style@w3.org

I have been implementing a CSS3 parser, and I have noted what is
probably a minor mistake in the CSS3 syntax document:
http://www.w3.org/TR/2003/WD-css3-syntax-20030813/
In section 4.2. Tokenization

urlchar 	::= 	[#x9#x21#x23-#x26#x27-#x7E] | nonascii | escape

stringchar 	::= 	urlchar | #x20 | '\' nl

string 	::= 	'"' (stringchar | "'")* '"' | "'" (stringchar | '"')* "'"

The point where I note a potential problem is with #x27 being in the
urlchar accepted character range, which creates a problem in
single-quoted strings where the terminating single-quote will be read
as a part of the string.

-- 
http://greatred.pengus.net/
MSN: greatred@gmail.com
Skype: greatred1980
Jabber: greatred@gmail.com, greatred@jabber.org
Yahoo: greatred
ICQ: 3625931
AIM: greatred1980
"Look to windward"
Received on Saturday, 19 August 2006 20:09:09 GMT

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