- From: Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
- Date: Mon, 25 Sep 2006 13:42:47 +0400
- To: fantasai <fantasai.lists@inkedblade.net>
- Cc: www-style@w3.org
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