UNPKG

axe-core

Version:

Accessibility engine for automated Web UI testing

17 lines (14 loc) 413 B
import standards from '../../standards'; /** * Check if a given role is unsupported * @method isUnsupportedRole * @memberof axe.commons.aria * @instance * @param {String} role The role to check * @return {Boolean} */ function isUnsupportedRole(role) { const roleDefinition = standards.ariaRoles[role]; return roleDefinition ? !!roleDefinition.unsupported : false; } export default isUnsupportedRole;