Closed GoogleCodeExporter closed 8 years ago
Fixed in r292.
$doc = phpQuery::newDocument('<div class="class1 class2"/><div
class="class1"/><div
class="class2"/>');
$doc['div']->filter('.class1, .class2')->dumpWhois();
Result is div.class1.class2
Original comment by tobiasz....@gmail.com
on 1 Nov 2008 at 4:14
Hey ! you should be with your family ! LoL
Thanks ;). I'll test it :).
Original comment by nicolas....@gmail.com
on 1 Nov 2008 at 4:20
Hum that's not really what we want it to do.
<php>filter('.class1, .class2')</php> should match the three DIV in your
example.
Because the coma in a CSS selector is equal to "OR" not "AND".
So it filters the DIv having the "class1" OR the "class2".
So it doesn't work for me :(.
Original comment by nicolas....@gmail.com
on 1 Nov 2008 at 4:29
Youre right Nicolas, and even better because jQuery returns 4 nodes (one
duplicate)
for such query. Ive applied this behavior in r293.
Original comment by tobiasz....@gmail.com
on 1 Nov 2008 at 6:53
Thanks to correct it ^^.
Working perfectly :).
Original comment by nicolas....@gmail.com
on 3 Nov 2008 at 9:04
Original issue reported on code.google.com by
nicolas....@gmail.com
on 1 Nov 2008 at 2:24