Sha256: 0468fe2e767033e7b1f260f51dbd106b898808a1f4112f9a275319dc5b3bc92f
Contents?: true
Size: 458 Bytes
Versions: 261
Compression:
Stored size: 458 Bytes
Contents
/* global aria */ /** * Get the text value of aria-label, if any * * @deprecated Do not use Element directly. Pass VirtualNode instead * @param {VirtualNode|Element} element * @return {string} ARIA label */ aria.arialabelText = function arialabelText(node) { if (node instanceof axe.AbstractVirtualNode === false) { if (node.nodeType !== 1) { return ''; } node = axe.utils.getNodeFromTree(node); } return node.attr('aria-label') || ''; };
Version data entries
261 entries across 261 versions & 1 rubygems