Sha256: 0f20bccc492d4a5cc8eb3fc58ec1604a79c4a57885d04f4e3c7e3b17620d3c6b
Contents?: true
Size: 466 Bytes
Versions: 375
Compression:
Stored size: 466 Bytes
Contents
const id = node.getAttribute('id').trim(); // Since empty ID's are not meaningful and are ignored by Edge, we'll // let those pass. if (!id) { return true; } const root = axe.commons.dom.getRootNode(node); const matchingNodes = Array.from( root.querySelectorAll(`[id="${axe.utils.escapeSelector(id)}"]`) ).filter(foundNode => foundNode !== node); if (matchingNodes.length) { this.relatedNodes(matchingNodes); } this.data(id); return matchingNodes.length === 0;
Version data entries
375 entries across 375 versions & 1 rubygems