On Apr 29, 2011, at 11:24 PM, Alan Gresley wrote:

> This is not completely true. Firstly the XHTML is traditional so it's not 
> true XHTML

That doesn't matter, as ID's starting with a leading digit are not allowed in 
html4.01. Beside, XHTML strict served as text/html is handled just the same as 
html4.01 by browsers.
http://www.w3.org/TR/html401/types.html#type-name

> and secondly, IDs or classes beginning with a digit that is in an escape 
> sequence (flowed by one space of whitespace) is valid CSS. 

The CSS selector is only valid when the (leading) digit is escaped…

IOW: #4col1 {background: lime;} is invalid (and correctly ignored by browsers) 
but #\34col1 {background: lime;} is valid

Philippe
--
Philippe Wittenbergh
http://l-c-n.com/






______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to