Sha256: 674577cf1da4526caa903700193c1d93599a475cc71e0a055e914b66477cd568

Contents?: true

Size: 324 Bytes

Versions: 114

Compression:

Stored size: 324 Bytes

Contents

/* global aria */

/**
 * Get the text value of aria-label, if any
 *
 * @param {VirtualNode|Element} element
 * @return {string} ARIA label
 */
aria.arialabelText = function arialabelText(node) {
	node = node.actualNode || node;
	if (node.nodeType !== 1) {
		return '';
	}
	return node.getAttribute('aria-label') || '';
};

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
govuk_publishing_components-16.16.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.15.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.14.1 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.14.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.13.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.12.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.11.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.10.1 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.10.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.9.2 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.9.1 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.9.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.8.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.7.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js