Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix when no selector defined #4

Merged
merged 2 commits into from Sep 7, 2014

Conversation

mgaitan
Copy link
Contributor

@mgaitan mgaitan commented Sep 6, 2014

the default selector is the whole page ('html') but this is applied through PyQuery.find wich traverses down.
example:

In [2]: PyQuery('<html>hello</html>').find('html')
Out[2]: []

In [3]: PyQuery('<html>hello</html>')('html')
Out[3]: [<html>]

pq.find('html') doesnt return anything but pq('html') does
@matiasb
Copy link
Owner

matiasb commented Sep 7, 2014

Looks good!
Merging, thanks.

matiasb added a commit that referenced this pull request Sep 7, 2014
@matiasb matiasb merged commit b45d847 into matiasb:master Sep 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants