has-global-aria-attribute-evaluate.js 353 B

1234567891011
  1. import getGlobalAriaAttrs from '../../commons/standards/get-global-aria-attrs';
  2. function hasGlobalAriaAttributeEvaluate(node, options, virtualNode) {
  3. const globalAttrs = getGlobalAriaAttrs().filter(attr =>
  4. virtualNode.hasAttr(attr)
  5. );
  6. this.data(globalAttrs);
  7. return globalAttrs.length > 0;
  8. }
  9. export default hasGlobalAriaAttributeEvaluate;