function hasAriaLabel(element) {
    var node = angular.element(element)[0] || element;

    /* Check if compatible node type (ie: not HTML Document node) */
    if (!node.hasAttribute) {
      return false;
    }

    /* Check label or description attributes */
    return node.hasAttribute('aria-label') || node.hasAttribute('aria-labelledby') || node.hasAttribute('aria-describedby');
  }
function hasAriaLabel(element) {
    var node = angular.element(element)[0] || element;

    /* Check if compatible node type (ie: not HTML Document node) */
    if (!node.hasAttribute) {
      return false;
    }

    /* Check label or description attributes */
    return node.hasAttribute('aria-label') || node.hasAttribute('aria-labelledby') || node.hasAttribute('aria-describedby');
  }
function hasAriaLabel ( element ) { var node = angular . element ( element ) [ 0 ] || element ; /* Check if compatible node type (ie: not HTML Document node) */ if ( ! node . hasAttribute ) { return false ; } /* Check label or description attributes */ return node . hasAttribute ( 'aria-label' ) || node . hasAttribute ( 'aria-labelledby' ) || node . hasAttribute ( 'aria-describedby' ) ; }
Check if expected element has aria label attribute
@param element
Check if expected element has aria label attribute
Check if element has aria label or aria - labelledby or aria - descriptions