Re: Digits, re-visited

Sue Jordan writes:
 > >From the normative section on the differences between the CSS1 and
 > CSS2 tokenizer
 > <http://www.w3.org/TR/REC-CSS2/grammar.html#tokenizer-diffs>, we have:
 > 
 > In CSS1, a class name could start with a digit (".55ft"), unless it
 > was a dimension (".55in"). 
 > 
 > But, from CSS1, forward compatibility
 > <http://www.w3.org/TR/REC-CSS1#forward-compatible-parsing>
 > 
 > we have the unambiguous:
 > 
 > in CSS1, selectors (element names, classes and IDs) can contain only
 > the characters A-Z, 0-9, and Unicode characters 161-255, plus dash
 > (-); they cannot start with a dash or a digit; ...
 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 > 
 > If the CSS2 statement were in an informative section, rather than a
 > normative one, I'd call it a lapse, and let it go. I'd thought the
 > issue settled through previous discussion, but the mis-statement is
 > still part of a normative reference. Oversight?

You're right. We compared the CSS2 grammar to the one in CSS1
(http://www.w3.org/TR/REC-CSS1#appendix-b), and it showed that in CSS1
digits were allowed. So this will be an erratum (or two maybe: one for
the CSS1 grammar, and one for the CSS2 list of changes).



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos/                              W3C/INRIA
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France

Received on Thursday, 14 May 1998 14:02:13 UTC