Re: [css3-selectors] :parent selector

Hello!

fantasai wrote:
>   /* select links with img child, i.e. all image links */ {

This made me think that :parent selector would be both useful and fast 
if it would be limited to the situation when parent has only *one* 
child. I.e.:

     :link:parent img {
       border: none;
     }

...would match only in cases like `<a><img/></a>` (may be with 
whitespace). This eliminates worries about multi-megabyte children 
collections. And even if this only child is multi-megabyte its opening 
tag is available immediately.

Received on Monday, 25 September 2006 09:43:10 UTC