On Fri, 2009-05-22 at 13:19 +0100, Benjamin Hawkes-Lewis wrote:
> On 22/5/09 13:02, Michael A. Peters wrote:
> > If I recall - it is illegal to end a css class name is a number.
> 
> Those are actually id names not class names, but it's not illegal in 
> either case.
> 
> HTML "id" attributes must follow this:
> 
> http://www.w3.org/TR/html401/types.html#type-id
> 
> XML "id" attributes must follow this:
> 
> http://www.w3.org/TR/REC-xml/#NT-Name
> 
> The "class" attribute is a CDATA list:
> 
> http://www.w3.org/TR/html401/types.html#type-cdata
> 
> Pretty much the only thing illegal in a classname is whitespace.
> 
> You may be thinking of the restriction that HTML/XML "id" attributes may 
> not /begin/ with a number.
> 
> --
> Benjamin Hawkes-Lewis
> 
There are certain bugs in IE that can cause problems with using what it
considers reserved words for ID's or class names. I've run into problems
before, particularly when using DXHTML (you know what I mean!) with
elements that had ID's called 'name', etc, even when referencing the
elements correctly with the getElementByID() DOM call. Also, I believe
there used to be a bug in IE (not sure what versions) where classnames
that were the same as ID's caused problems.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to