docs: function findAncestor(node, matchFunction, bound){
      while (node && node !== bound)
      {
        if (matchFunction(node))
          break;
  
        node = node.parentNode;
      }
  
      return node || null;
    }