Skip to content
This repository

Element.getParents doc clarification #2252

umphy opened this Issue · 2 comments

3 participants

umphy Arian Stolwijk Olmo Maldonado

In the docs it says "Like Element:getParent, but returns a collection of all the matched parentNodes up the tree."

But since it returns a collection, unlike Element:getParent, if no matching parents are found then it returns an empty array rather than null.

Arian Stolwijk

Right, that's the correct behavior indeed. However you're saying the documentation could be a bit clearer?

If you want you could go to and click the 'Fork and edit file' button, and fix it yourself, and send a pull request. Otherwise we'll try to fix this later.

Olmo Maldonado ibolmo closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.