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-17.3.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-17.2.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-17.1.1 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-17.1.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-17.0.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.29.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.28.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.27.1 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.27.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.26.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.25.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.24.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.23.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.22.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.21.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.20.1 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.20.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.19.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.18.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js
govuk_publishing_components-16.17.0 node_modules/axe-core/lib/commons/aria/arialabel-text.js