function parents(node) {
  var nodes = [node];

  for (; node; node = node.parentNode) {
    nodes.unshift(node);
  }

  return nodes;
}
Find all parents (ancestors) of an element
@param {element} node
@returns {element[]} parents
@memberof Core