[Bug 16351] For ease of interoperability with CSS, suggest adding an authoring recommendation that id attribute values consist of the characters A-Z, a-z, 0-9, _, - and not begin with a dash.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16351

--- Comment #1 from Simon Pieters <simonp@opera.com> 2012-03-14 07:49:58 UTC ---
Same with classes, I presume? What about data-* attribute names?

Note that the rule is:

"In CSS, identifiers (including element names, classes, and IDs in selectors)
can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and
higher, plus the hyphen (-) and the underscore (_); they cannot start with a
digit, two hyphens, or a hyphen followed by a digit."

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 14 March 2012 07:50:00 UTC