wolferhua / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

":empty" selector seems to not work #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. $article_element->children('p:empty')->remove();
2.
3.

What is the expected output? What do you see instead?
Should remove the P element which don't contains anything. It doesn't do it.

What version of the product are you using? On what operating system?
r203

Please provide any additional information below.

Original issue reported on code.google.com by nicolas....@gmail.com on 16 Oct 2008 at 2:14

GoogleCodeExporter commented 9 years ago
Cant reproduce it. Test case avaible in test_selectors.php. Second quick test 
on XML
document also worked. Need more information about DOM where problem occures.

Original comment by tobiasz....@gmail.com on 17 Oct 2008 at 9:36

GoogleCodeExporter commented 9 years ago
Invalid : that's not real empty element that I'm trying to remove but element 
which
contains only one blank space.

Original comment by nicolas....@gmail.com on 20 Oct 2008 at 9:00

GoogleCodeExporter commented 9 years ago

Original comment by tobiasz....@gmail.com on 21 Oct 2008 at 10:33