W3C home > Mailing lists > Public > www-style@w3.org > October 2008

Re: Selectors in jQuery

From: Philip TAYLOR <P.Taylor@Rhul.Ac.Uk>
Date: Thu, 09 Oct 2008 19:09:01 +0100
Message-ID: <48EE48BD.2010005@Rhul.Ac.Uk>
To: Andrew Fedoniouk <news@terrainformatica.com>
CC: "www-style@w3.org" <www-style@w3.org>



Andrew Fedoniouk wrote:

> :has-child     - element has single child.
> :has-children  - element has at least one child.

> E:has-child-of-type(T) - matches element that has precisely one
>               immediate child of type T.
> E:has-children-of-type(T) - matches element that has one or more
>               immediate children of type T.

Slightly worried about the ambiguity of these names --

if I have one or more children, then I "have child".
if I have more than one child, then I "have children".

You seem to be using these with the reverse semantics.

Philip TAYLOR
Received on Thursday, 9 October 2008 18:09:39 GMT

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