Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow aria-required on password input element #1461

Closed
2biazdk opened this issue Apr 20, 2021 · 2 comments
Closed

Allow aria-required on password input element #1461

2biazdk opened this issue Apr 20, 2021 · 2 comments

Comments

@2biazdk
Copy link

2biazdk commented Apr 20, 2021

<input type="password"> has no role (https://www.w3.org/TR/html-aam-1.0/#html-element-role-mappings) and therefore only allows global attributes (https://www.w3.org/TR/wai-aria-1.2/#global_states) which doesn't contain aria-required.

As far as I can see, aria-required should be allowed on the password input element.

@scottaohara
Copy link
Member

scottaohara commented Apr 20, 2021

it has no implicit ARIA role mapping, but that doesn't mean it doesn't allow other non-global aria-* roles.

see ARIA in HTML. Being that the input allows the required attribute in HTML, it also allows for the aria-required attribute, as well as other aria-* attributes like aria-readonly and aria-disabled

@Jym77
Copy link

Jym77 commented Apr 20, 2021

Ouch! This means we've completely messed up ACT rule ARIA state or property is permitted which completely ignores the ARIA in HTML and requires that elements with no role only have the global attributes 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants