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

Document Parsing Failure #106

Closed
cmoreno opened this issue Oct 3, 2012 · 3 comments
Closed

Document Parsing Failure #106

cmoreno opened this issue Oct 3, 2012 · 3 comments

Comments

@cmoreno
Copy link

cmoreno commented Oct 3, 2012

I was using cheerio version 0.9.1 and it was working fine. I updated to the latest 0.10.0 (?) and my code stopped working, I am not sure why since the examples look the same. Here is what I am doing:

var $ = cheerio.load(response.doc); //where response.doc is an entire HTML document

I am then trying to get some data from the document, like the title:

$('title', 'head').each(function (i, elem) {
console.log( $(this).text() );
});

This worked with 0.9.1 but it does not with 0.10.0, no errors, it just never gets into the loop.

@matthewmueller
Copy link
Member

Interesting, yah - this must be a regression. I simplified the selector engine a lot, but I must have missed this case. I will fix it.

@matthewmueller
Copy link
Member

Okay this should be fixed. Thanks for bringing this to my attention.

@cmoreno
Copy link
Author

cmoreno commented Oct 3, 2012

So it is fixed, thanks for the quick response

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

No branches or pull requests

2 participants