|
Posted by Alan J. Flavell on 05/05/06 17:23
On Fri, 5 May 2006, Dylan Parry wrote:
> I don't think that hyphens are allowed in selector names anyway,
You're entirely at liberty to consult the various applicable
specifications, you know, before sharing your confusion with others.
> or at least some browsers have problems with them.
I suspect you're confuddling it with underscores.
CSS/2, as originally formulated, specified that underscores were
not allowed in identifiers. Therefore, browsers implemented according
to the specification were *required*, by the CSS error handling
specifications, to ignore identifiers which contained underscores.
Far from "having problems with" underscores, browsers which treated
them as syntax errors, and treated them in accordance with the CSS
rules for handling errors (i.e ignoring the associated part of the
CSS) were behaving correctly, whereas those which erroneously accepted
them were in violation of the specification.
Later, W3C mischievously slipped-in a substantive change to the
specification via the "errata" - see
http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata.html#x3
- but without making any change to the CSS version (2).
It's impossible for a browser to conform to both CSS2 (as published)
and CSS2 (errata), since they are contradictory.
They really should have confined the CSS2 "errata" to editorial
corrections, or resolving genuine ambiguities in the wording, and left
any substantive change of the specification for a later version (a
hypothetical /2.01, or something). That's past history now - but it's
to be hoped they don't play that kind of trick again.
Navigation:
[Reply to this message]
|