code: function checkElement(node, attr, includeScope) {
    var elements = getElements(node, attr);
  
    if (includeScope && node.hasAttribute(attr)) {
      elements.push(node);
    }
  
    return elements;
  }
docs: checkElement
  Get an array of elements for a node.
  return elements
  @param  {Element} node
  @param  {String} attr
  @param  {Boolean} includeScope
  @return {Array}