Re: ID selector via attribute?

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 UTC