accesskeys-evaluate.js 251 B

1234567891011
  1. import { isVisible } from '../../commons/dom';
  2. function accesskeysEvaluate(node) {
  3. if (isVisible(node, false)) {
  4. this.data(node.getAttribute('accesskey'));
  5. this.relatedNodes([node]);
  6. }
  7. return true;
  8. }
  9. export default accesskeysEvaluate;