W3C home > Mailing lists > Public > www-style@w3.org > July 2000

CSS grammar/syntax

From: Beales, Jonathan <jonathan.beales@progeny.net>
Date: Mon, 10 Jul 2000 14:09:36 -0400
Message-ID: <69230B2D239ED311BEC700C00D01199D1D662F@nt-server>
To: "'www-style@w3c.org'" <www-style@w3c.org>
I've been doing some work recently using CSS to format XML.  I used a
variety of tools including the CSS valuators, multiple browsers, and
specialized CSS editing tools.  Some tools act quite different than others
so I often check back with the spec to see which is correct.  Recently,
while examining some XML that contained underscores within element names, I
noticed an oddity between CSS and XML.  In reading the CSS grammars (1, 2, &
3), I've noticed that underscores are not valid within element names.
However, the XML spec allows elements to contain underscores.

With a search of the archive of this mailing list, the only reason I could
find is that underscores where not allowed in CSS1 because no HTML elements
contained underscores and that subsequent versions of the CSS spec must
maintain compatibility with CSS1.

I am wondering if there are any other reasons underscores are not allowed
within element names?

Received on Monday, 10 July 2000 14:09:02 UTC

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