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

Re: OPINIONS WANTED: regexps in CSS? (Re: Suggestion for Attribute Selectors)

From: Stephanos Piperoglou <sp249@cam.ac.uk>
Date: Tue, 10 Mar 1998 18:11:11 +0000 (GMT)
To: Victoria Rosenfeld <jiggy@holly.colostate.edu>
cc: Bert Bos <Bert.Bos@sophia.inria.fr>, www-style@w3.org
Message-ID: <Pine.LNX.3.96.980310180740.16155D-100000@teatime.joh.cam.ac.uk>
On Tue, 10 Mar 1998, Victoria Rosenfeld wrote:

> If "advanced" means: "users fluent in Perl" ... how many people do you
> think will be in this audience? The use of these REs seems to go counter
> to what the web is all about, and it *ain't* about having the "advanced"
> users be the only ones to use it to the fullest.

I didn't say I think we should use regexp's :-) I just answered the

> Javascript seems like the way to go, in general. Slightly complicated, but
> very powerful *and* can be implemented at it's basic level (mouse overs,
> popup windows, et all) fairly easily. Perl is a bitch to learn & I shudder
> at the thougt of having to become "advanced" enough to use (what is
> potentially) a great functionality such as CSSes.

Uhmm... Not so sure of that. JavaScript (or ECMAScript, which I hope SOMEONE
SOMEWHERE will implement some day) is a very specific client-side method.
CSS has so much functionality built in already that it can do a number of
things that JavaScript is used for today.

The important argument AGAINST regexps is that most people won't use them in
the first place. Most CSS applications are simple enough not to require
complex element matching, and most people are already used to using class
and id as selectors, which are powerful enough for most applications.
Overburdening CSS with regexps is a bad idea.

-- Stephanos Piperoglou -- sp249@cam.ac.uk -------------------
All I want is a little love and a lot of money. In that order.
------------------------- http://www.thor.cam.ac.uk/~sp249/ --
Received on Tuesday, 10 March 1998 13:13:03 UTC

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