Sha256: 25329adbc8ee4b370633890353254668e34d554c143f07ebfbc8ba2af85a76ec
Contents?: true
Size: 522 Bytes
Versions: 202
Compression:
Stored size: 522 Bytes
Contents
const parent = axe.commons.dom.getComposedParent(node); if (!parent) { // Can only happen with detached DOM nodes and roots: return undefined; } const parentTagName = parent.nodeName.toUpperCase(); const parentRole = (parent.getAttribute('role') || '').toLowerCase(); if (['presentation', 'none', 'list'].includes(parentRole)) { return true; } if (parentRole && axe.commons.aria.isValidRole(parentRole)) { this.data({ messageKey: 'roleNotValid' }); return false; } return ['UL', 'OL'].includes(parentTagName);
Version data entries
202 entries across 202 versions & 1 rubygems