I mean an array of them. That is a chain from top HTML to destination element including the element itself.
for example for element it would b
I like this method:
[...(function*(e){do { yield e; } while (e = e.parentNode);})($0)]
... where $0 is your element.
An upside of this method is that it can be used as a value in expressions.