W3C home > Mailing lists > Public > www-style@w3.org > March 2004

Re: Proposal: regular expressions (or wildcards) in selectors

From: Christoph Päper <christoph.paeper@tu-clausthal.de>
Date: Wed, 17 Mar 2004 01:15:29 +0100
Message-ID: <072a01c40bb4$f4ab43a0$3ef4ae8b@heim4.tuclausthal.de>
To: "Felipe Gasper" <fgasper@freeshell.org>
Cc: <www-style@w3.org>

*Felipe Gasper*:
> Actually, speaking of, does anyone know exactly what IE does support with
> regard to multiple classes?

AFAIK it gets the HTML part right and also selectors with just one class per
element ("foo.bar, .bar .baz"), but "foo.bar.baz" should be avoided.

> onmouseover="this.className += ' IEhover'"

You'll get a very long 'className' after some hovers with this. Use a simple
function that only adds the string if it's not already set.
I'm not that much into DOM issues, but I think, 'className' should have been
defined to return an array, not a string. At least there should be an easy way
to treat strings as space or comma separated lists (other than '.split()').
Received on Tuesday, 16 March 2004 19:14:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:12 UTC