aria-labelledby-evaluate.js 315 B

123456789101112
  1. import { sanitize } from '../../commons/text';
  2. import { arialabelledbyText } from '../../commons/aria';
  3. function ariaLabelledbyEvaluate(node, options, virtualNode) {
  4. try {
  5. return !!sanitize(arialabelledbyText(virtualNode));
  6. } catch (e) {
  7. return undefined;
  8. }
  9. }
  10. export default ariaLabelledbyEvaluate;