W3C home > Mailing lists > Public > www-html@w3.org > November 2013

Re: ID/Class Names beginning with numbers

From: Philip Taylor <P.Taylor@Rhul.Ac.Uk>
Date: Wed, 27 Nov 2013 16:31:08 +0000
Message-ID: <52961E4C.1040501@Rhul.Ac.Uk>
To: Thomas BAYER - Web Alliance <thomas-bayer@web-alliance.fr>, "'www-html@w3.org'" <www-html@w3.org>

Thomas BAYER - Web Alliance wrote:

> Finally, concerning the impossibility for ID/Class names to contain
> embedded spaces, it seems incompatible with CSS and jQuery selectors, to
> name just a few.

The reasons why they cannot contain embedded (or even trailing) spaces
is clear, and does not need reference to other standards (such as CSS)
even less arbitrary libraries such as Jquery.  But that was not my
question -- I was simply asking if there can exist any justification for
allowing class/ID names to commence with a digit that would not equally
apply to allowing such names to contain spaces; both offer "convenience"
to those that would exploit such features, but little else.

Philip Taylor
Received on Wednesday, 27 November 2013 16:31:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:26 UTC