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
Suggestion: operators at the start of a selector #13
Comments
Good idea, thanks. |
Allow combinators at start of selector query Closed by 8b1abce |
Is this fix in version 0.3.1? I just tried and I'm still getting the selector parsing error. |
Sorry, no, it's in the next (unreleased) version. See http://github.com/jhy/jsoup/blob/master/CHANGES The next version is ready for release, hopefully in the next few days. I'm struggling a bit for time with moving house etc. |
OK no rush or anything, was just checking. Couldn't find a reference to the version number in that checkin link above. In future I'll keep an eye on that changes file :) |
In jQuery, when doing further DOM selection on an element (e.g. using
find
), you can use operators at the start of the query to filter based on the current element.For example, this jQuery:
$('table.data > tbody > tr').find('> td')
will selecttd
elements that are direct children of the rows found in the first query. It will not selecttd
elements from any nested tables.With JSoup, this would be something like:
I currently get this error:
Could not parse query >td
The text was updated successfully, but these errors were encountered: