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

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

From: Tim Bagot <tim@oakley.keble.ox.ac.uk>
Date: Tue, 10 Mar 1998 13:03:00 -0500 (EST)
Message-ID: <Pine.LNX.3.96.980310175301.23421A-100000@oakley.keble.ox.ac.uk>
To: Style Sheet mailing list <www-style@w3.org>

One thing people seem to have missed is that in most cases it would be
possible to simplify the regular expressions quite considerably, by using
the fact that the attribute in question has a limited range of allowable
values, or even that it will take only a few different values in the
documents to which the style sheet applies. For instance, when matching
the lang attribute, there is no need to allow for the fact that its value
might be "franc" or "free" because this should never be the case; I'm not
saying that it can't be the case, but if you write invalid markup you
cannot reasonably expect it to behave sensibly.

Tim Bagot
Received on Tuesday, 10 March 1998 14:17:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:54 GMT