function getElementChildren(element) {
  const first = dom.getFirstElementChild(element);
  if (!first) {
    return [];
  }
  const children = [first];
  let next;

  while (next = dom.getNextElementSibling(children[children.length - 1])) {
    children.push(next);
  }
  return children;
}
Returns an array of all element children of a given node.
@param {!Node} element The node to get element children of.
@return {!Array<!Node>} An array of all the element children.