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

Add rules to clarify valid aria-invalid use #366

Open
scottaohara opened this issue Oct 22, 2021 · 1 comment
Open

Add rules to clarify valid aria-invalid use #366

scottaohara opened this issue Oct 22, 2021 · 1 comment
Assignees
Labels
Allowed aria-* attributes ARIA 1.2 related Issues directly related to updates in ARIA 1.2

Comments

@scottaohara
Copy link
Member

aria-invalid can have the following values:

  • true - to indicate the value entered by the user is invalid
  • false - default state, no issues with validity
  • grammar - a grammatical error was found
  • spelling - spelling error found

ARIA 1.2 is deprecating the attribute from being global as the true, and in some ways false, values are specifically suited for form controls. grammar and spelling however, are still necessary for rich text editing, and though the attribute is being deprecated globally, conformance checkers should not outright flag its use on non-form controls to be incorrect.

So, in regards to this spec, we would need to call out that aria-invalid=true|false should be allowed on the form controls where this makes sense, but otherwise (specifically aria-invalid=true) not be allowed on other elements. But aria-invalid=grammar|spelling would still be allowed on any HTML element that otherwise allows for global aria-* attributes.

related to w3c/aria#989

@scottaohara scottaohara added Allowed aria-* attributes ARIA 1.2 related Issues directly related to updates in ARIA 1.2 labels Oct 22, 2021
@scottaohara scottaohara added this to the ARIA in HTML: Next milestone Oct 22, 2021
@scottaohara scottaohara added the blocked An issue that cannot be resolved due to other external requirements label Jan 10, 2022
@scottaohara
Copy link
Member Author

Requires issue 391 (linked above) be merged to create the section of the spec to include this information.

@scottaohara scottaohara removed the blocked An issue that cannot be resolved due to other external requirements label Jan 18, 2022
@scottaohara scottaohara self-assigned this Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Allowed aria-* attributes ARIA 1.2 related Issues directly related to updates in ARIA 1.2
Projects
None yet
Development

No branches or pull requests

1 participant