Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the pQuery CPAN distribution.

Report information
The Basics
Id: 37977
Status: new
Priority: 0/
Queue: pQuery

People
Owner: Nobody in particular
Requestors: lcamel [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.07
Fixed in: (no value)



Subject: Class selector
$ perl -MpQuery -e 'pQuery(q(<html> <a class="foo">1</a> <a class="bar">2</a> </html>))->find("a")->each(sub { print $_->as_text, "\n" })' 1 2 But $ perl -MpQuery -e 'pQuery(q(<html> <a class="foo">1</a> <a class="bar">2</a> </html>))->find("a.foo")->each(sub { print $_->as_text })' outputs nothing.