Sha256: 5a9db58720af35a894970c6ddbef28039efc61774395d0de0af43c22bf997393
Contents?: true
Size: 409 Bytes
Versions: 375
Compression:
Stored size: 409 Bytes
Contents
if (node.getAttribute('id')) { const root = axe.commons.dom.getRootNode(node); const id = axe.utils.escapeSelector(node.getAttribute('id')); const label = root.querySelector(`label[for="${id}"]`); if (label && !axe.commons.dom.isVisible(label, true)) { const name = axe.commons.text.accessibleTextVirtual(virtualNode).trim(); const isNameEmpty = name === ''; return isNameEmpty; } } return false;
Version data entries
375 entries across 375 versions & 1 rubygems