Sha256: 4f2a6216439b7c909bd268ba4a28245625bdd3e8999c84d88d117e6b19159c4c
Contents?: true
Size: 425 Bytes
Versions: 375
Compression:
Stored size: 425 Bytes
Contents
const { getComposedParent } = axe.commons.dom; /** * Only match the outer-most `aria-hidden=true` element * @param {HTMLElement} el the HTMLElement to verify * @return {Boolean} */ function shouldMatchElement(el) { if (!el) { return true; } if (el.getAttribute('aria-hidden') === 'true') { return false; } return shouldMatchElement(getComposedParent(el)); } return shouldMatchElement(getComposedParent(node));
Version data entries
375 entries across 375 versions & 1 rubygems