W3C home > Mailing lists > Public > www-style@w3.org > February 2001

What Characters Are Allowed in IDs?

From: Sean B. Palmer <sean@mysterylights.com>
Date: Mon, 26 Feb 2001 03:59:37 -0000
Message-ID: <007301c09fa8$8ab95de0$bbec7ad5@z5n9x1>
To: <www-style@w3.org>
Is a forwardslash "/" an allowed part of a CSS2 IDENT? For example:-

     .a/bc { font-weight: bold; }

or does it have to be escaped as in:-

     .a\/bc { font-weight: bold; }

Furthermore, is there any difference in the way the two above are
parsed / processed / treated?

I can't make head nor tail of the specification on this one: it seems
to allow UTF characters up to 161, but I know for a fact that ":" must
be escaped... so I'm not too sure. My guess is that it must be

Kindest Regards,
Sean B. Palmer
@prefix : <http://webns.net/roughterms/> .
[ :name "Sean B. Palmer" ] :hasHomepage <http://infomesh.net/sbp/> .
Received on Sunday, 25 February 2001 22:57:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:56 UTC