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

Re: ID/Class Names beginning with numbers

From: Thomas BAYER - Web Alliance <thomas-bayer@web-alliance.fr>
Date: Wed, 27 Nov 2013 16:20:16 +0000
To: "'www-html@w3.org'" <www-html@w3.org>
Message-ID: <18B45E1EEFCDC348BC5AB19D5EFBEF93011EF4C6DF@ArenasMail.weballiance.lan>
Philip Taylor wrote :

> I can't see a /prima facie/ case for that. Why do you tacitly
> assert that it would be the case, and would your argument
> then not be equally true for (say) class or ID names to be
> permitted to contain embedded spaces ?

I'm just raising a question, and it seems to me - emphasis on *me* - that it would be useful to be able to have ID/Class names beginning by a number, mut that's just my point of view.
I used to be bothered by this at the beginning, for instance to distinguish odd and even rows/columns in a <table /> element, it just seemed counter-productive to assign class names like "td_0" and "td_0" instead of just "0" or "1".

Still, let's set aside my views on the matter, I'm just trying to understand the reason why it can't be done.

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.

Received on Wednesday, 27 November 2013 16:24:06 UTC

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