skip-link-evaluate.js 280 B

1234567891011
  1. import { getElementByReference, isVisible } from '../../commons/dom';
  2. function skipLinkEvaluate(node) {
  3. const target = getElementByReference(node, 'href');
  4. if (target) {
  5. return isVisible(target, true) || undefined;
  6. }
  7. return false;
  8. }
  9. export default skipLinkEvaluate;