W3C home > Mailing lists > Public > www-style@w3.org > April 2003

Re: ID selector via attribute?

From: Michael Day <mikeday@yeslogic.com>
Date: Tue, 22 Apr 2003 20:59:49 +1000 (EST)
To: Ian Hickson <ian@hixie.ch>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <Pine.LNX.4.44.0304222055290.2828-100000@lorien.yeslogic.com>


Hi Ian,

> The most complete proposal I could find is at the end of:
>    http://lists.w3.org/Archives/Public/www-style/2002May/0037.html
> (Search for "updated".)

I read this and it's certainly interesting. It seems to me that :has() is 
the most useful aspect, in that it doesn't introduce new syntax (#) and is 
very easy to read:

form:has(textarea)

It just seems to fit into the current style of CSS selectors very nicely.  
However I find :matches() very difficult to understand, and need to
re-read such selectors several times to figure them out. I feel that if
such complicated selectors are really necessary, it's almost worth
bringing in XPath, which would fit more comfortably than trying to stretch
CSS further. But perhaps people who don't know XPath would disagree. But
do those same people need :matches? Hmm :)

Anyway, I'm definitely interested in implementing :has, but will probably
steer clear of :matches for now, until I run into an example where I
actually need it.

Cheers,

Michael Day

YesLogic Pty. Ltd.
Received on Tuesday, 22 April 2003 05:42:23 GMT

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