-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
mount: fix broken .parents()
#713
Conversation
Currently, I don't have time to look at this deeply. |
Thanks! I added the same test case to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM obv, but other collabs should stamp too
.parents()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for the small nit. Not a blocker though.
} | ||
|
||
// This function could be called with a number of different things technically, so we need to | ||
// pass the *right* thing to our internal helper. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this comment feels too vague, what are things and what is the right thing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is already in master; I just moved the function higher up due to no-use-before-define
Actually, this is a bug report. Test should pass, but it doesn't.
When elements tree has more than one branch,
.parents()
method returns some nodes, which are not parent of the element.