Hello,

I think the :empty pseudo-class has a bug, the docs are wrong or I
misunderstood the docs.

The Problem is, that :empty only matches elements when they really
have no children, incl. textnodes with whitespaces or newlines.

http://docs.jquery.com/Selectors/empty
> Matches all elements that are empty, be it elements or text.

Example:
~~~~~~~
$("#test").is(":empty")
-> returns: [ #test ], instead of an empty array


<div id="test">

</div>

Reply via email to