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

Re: What is the set of allowed characters in identifiers?

From: Andrei Polushin <polushin@gmail.com>
Date: Fri, 24 Aug 2007 13:40:29 +0700
Message-ID: <46CE7D5D.5020507@gmail.com>
To: www-style@w3.org

Eli Friedman wrote:
> Are the code points from 128 to 160 valid identifier characters?
> 
> The CSS2.1 draft doesn't give a clear answer.  The prose in 4.1.3 says
> that they are not allowed in identifiers, but the definition of the
> IDENT token in 4.1.1 says that they are allowed.

There could be a technical problem in expressing IDENT using the FLEX
notation: it cannot represent characters above 127 (see note at the
beginning of G.2). The correct grammar of on nonascii should be either:

	nonascii 	0xA0 .. 0x10FFFF 	# hexadecimal
	nonascii 	 160 ..  1114111	# decimal
	nonascii 	0240 .. 04177777 	# octal

but none of the above could be expressed using FLEX.

Thus the prose in 4.1.3 is the only normative reference.


-- 
Andrei Polushin
Received on Friday, 24 August 2007 06:40:40 GMT

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