Skip to content
This repository

Element.getParents doc clarification #2252

Closed
umphy opened this Issue · 2 comments

3 participants

umphy Arian Stolwijk Olmo Maldonado
umphy

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
Owner

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 https://github.com/mootools/mootools-core/blob/master/Docs/Element/Element.md 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.

umphy
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.