Nick Fitzsimons wrote:
On 20 Oct 2006, at 15:26:10, Lachlan Hunt wrote:
escape sequences allow the use of absolutely any character at all.

Yes, but the linked part of the CSS 2.1 spec states of identifiers used in CSS, including class names used in class selectors, that "they cannot start with a digit, or a hyphen followed by a digit".

So when I originally stated that "12345 is a valid value for the class attribute" (or words to that effect) I was correct in terms of HTML 4.01, but such a class could not then be the subject of a class selector in CSS.

No, you just fail to understand *how* to select it. The digit 1 has the Unicode code position U+0031. Thus, using an escape sequence, the selector can be written like either of these 2 selectors:

  .\31 2345 { color: green; }
  .\0000312345 { color: green; }

  <p class="12345">This line should be green

--
Lachlan Hunt
http://lachy.id.au/


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to