Re: Selectors in jQuery

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 UTC