Sha256: ca6d9e650fe2166cd3d06e19b8d1ff03b55411c14b85b482bdf22b6ab00c6e52

Contents?: true

Size: 258 Bytes

Versions: 10

Compression:

Stored size: 258 Bytes

Contents

const invalidRoles = axe.utils
	.tokenList(virtualNode.attr('role'))
	.filter(role => {
		return !axe.commons.aria.isValidRole(role, {
			allowAbstract: true
		});
	});

if (invalidRoles.length > 0) {
	this.data(invalidRoles);
	return true;
}

return false;

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
govuk_publishing_components-21.27.1 node_modules/axe-core/lib/checks/aria/invalidrole.js
govuk_publishing_components-21.27.0 node_modules/axe-core/lib/checks/aria/invalidrole.js
govuk_publishing_components-21.26.2 node_modules/axe-core/lib/checks/aria/invalidrole.js
govuk_publishing_components-21.26.1 node_modules/axe-core/lib/checks/aria/invalidrole.js
govuk_publishing_components-21.26.0 node_modules/axe-core/lib/checks/aria/invalidrole.js
govuk_publishing_components-21.25.0 node_modules/axe-core/lib/checks/aria/invalidrole.js
govuk_publishing_components-21.24.0 node_modules/axe-core/lib/checks/aria/invalidrole.js
govuk_publishing_components-21.23.1 node_modules/axe-core/lib/checks/aria/invalidrole.js
govuk_publishing_components-21.23.0 node_modules/axe-core/lib/checks/aria/invalidrole.js
govuk_publishing_components-21.22.2 node_modules/axe-core/lib/checks/aria/invalidrole.js