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

Re: OPINIONS WANTED: regexps in CSS?

From: Ian Hickson <exxieh@bath.ac.uk>
Date: Wed, 11 Mar 1998 23:45:53 -0000
Message-ID: <017201bd4d48$167cbea0$d220268a@hpxu>
To: Sho Kuwamoto <sho@macromedia.com>, www-style@w3.org
Sho wrote:
>I'm not a browser author, but I wrote the CSS parser and
>renderer for Dreamweaver. If regexp becomes part of the
>CSS spec, I don't imagine that we would support it for
>some time.

Will you support the currently drafted attribute selectors? If not, then
regexp won't make any difference to your plans. If you will, then why not
take one of the free, highly efficient implementations of regexp already out
there, and write it into the attribute selector section? The parsing of the
sheet will be the same - the regexp will be passed to the regexp parser -
and the selecting on attributes will still be a "does it match what we
want?" comparison, merely going through the extra step of passing it to the
regexp module.
The only extra step is this parser for regexp, which is largely already
written by other people.

>Adding complexity to CSS means that vendor compliance
>will become worse than it already is. I believe that this would
>hurt CSS more than it would help.

The same argument could be applied to tables, as I keep saying. But then I
guess you won't be implementing that anyway!!!

Ian Hickson
Version: 3.12   Info: www.geekcode.com
GIT/M/S d->-- s+: a--- C++(+++)>$ U P L+ !E W+++ N+ o? K? w@ O- !M V- PS+
PE- Y+ PGP t 5+++>++++ X- R(+++) tv b++(+++) DI++ D++ G e(*)>+++++ h!()(--)
!r y?
Received on Wednesday, 11 March 1998 18:46:55 UTC

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