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

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 UTC