-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
error: Unmatched selector: 's #59
Comments
Hm... I'll look into this. For the time being you should be able to do... |
Oh I see what's going on... it's thinking that the string is a selector and not an HTML string.. strange. Edit: jQuery does not even recognize that as an HTML string. It handles the response a bit more gracefully though with |
Similar problem with this html:
Results in:
While $(cols).eq(3) works, I still need to parse that line of text and grab stuff from it. |
I'm no expert, so that is the best I could do. Gross. =) |
Okay, I'll make adjustments so that it does not error out, but just to be clear - jQuery returns |
I vote for making it work correctly... which would be to parse it as if it was living inside a |
I'm not planning on deviating from how jQuery handles this case. For your use case you could explicitly wrap your input in |
First off, thanks for a brilliant project. I'm using cheerio 0.8.0:
My code looks like this:
The html returned from the $(cols.get(3)).html() looks like this:
When I try to wrap that output back into the outer $() so that I can do more selects on it, this is the stack trace I see:
I suspect it has something to do with the entity (') in there as other similar html without the single quote in it parses just fine.
The text was updated successfully, but these errors were encountered: