Sha256: db38158c9f72205352e9a3e88ed7c51a988ff6af4a71c3d20d1915cd7c8d8f56
Contents?: true
Size: 500 Bytes
Versions: 375
Compression:
Stored size: 500 Bytes
Contents
var landmarks = axe.commons.aria.getRolesByType('landmark'); var parent = axe.commons.dom.getComposedParent(node); this.data({ role: node.getAttribute('role') || axe.commons.aria.implicitRole(node) }); while (parent) { var role = parent.getAttribute('role'); if (!role && parent.nodeName.toUpperCase() !== 'FORM') { role = axe.commons.aria.implicitRole(parent); } if (role && landmarks.includes(role)) { return false; } parent = axe.commons.dom.getComposedParent(parent); } return true;
Version data entries
375 entries across 375 versions & 1 rubygems