Sha256: 4bfcfc9f8c57abb5f0aa21f6251afa084469525b76ac3bc949718b91e6fd632e
Contents?: true
Size: 327 Bytes
Versions: 375
Compression:
Stored size: 327 Bytes
Contents
const nativeScopeFilter = 'article, aside, main, nav, section'; // Filter elements that, within certain contexts, don't map their role. // e.g. a <header> inside a <main> is not a banner, but in the <body> context it is return ( node.hasAttribute('role') || !axe.commons.dom.findUpVirtual(virtualNode, nativeScopeFilter) );
Version data entries
375 entries across 375 versions & 1 rubygems