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-21.0.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-20.5.2 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-20.5.1 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-20.5.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-20.4.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-20.3.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-20.2.2 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-20.2.1 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-20.2.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-20.1.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-20.0.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-19.0.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-18.3.1 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-18.3.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-18.2.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-18.1.2 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-18.1.1 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-18.0.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-17.21.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-17.20.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js