1. Olivier Lauzanne
  2. pyquery
Issue #14 resolved

:empty selector ignoring text nodes

Viliam Segeda
created an issue

According to http://api.jquery.com/empty-selector/, :empty selector should select elements with no children elements nor text nodes. This seems to be not the case with pyquery:

{{{

!python

d = pq("<html><body><p>asdfgh</p></body></html>") print d('p:empty')

<p>asdfgh</p>

}}}