-
-
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
parent
and closest
type discrepancies
#2056
Comments
Makes the docs match the implementation and is in line with jQuery. Fixes #2056
This was a consequence of Cheerio's |
Cheers for that. So it still returns a const stopper = $(selector1).parent(selector2);
$(selector3).nextUntil(stopper) but not const stopper = $(selector1).closest(selector2);
$(selector3).nextUntil(stopper) because |
The next release will return a |
Hey, is there a reason why
parent(selector)
returns aCheerio<Element>
andclosest(selector)
aCheerio<Node>
?I imagine one would expect
closest
to be (in theory) a recursiveparent
.This prevents (at compilation, without casting) the element to be a selector in functions like
nextUntil
.The text was updated successfully, but these errors were encountered: