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

aria-invalid state the word 'Entered' in the text should be removed! #2267

Closed
LaurenceRLewis opened this issue Jul 1, 2024 · 1 comment
Closed
Labels
editorial a change to an example, note, spelling, grammar, or is related to publishing or the repo

Comments

@LaurenceRLewis
Copy link
Contributor

Describe the change

Based on a question I asked in WCAG Github issues, Technique ARIA21 aria-invalid for required fields that have no input vs ARIA aria-invalid spec #3933

Change the sentence in the ARIA specification for aria-invalid to remove the word 'entered' in the following sentence .

"Indicates the entered value does not conform to the format expected by the application. "

I misinterpreted this to indicate it is only an entered value that is used to determine the invalid state. Whereas Scott has suggested in the other discussion Technique ARIA21 aria-invalid for required fields that have no input vs ARIA aria-invalid spec #3933 that this also includes empty fields.

"if a form is submitted where the application expects the user to have entered data, but the user did not do so, then the lack of data (empty values) are not meeting the format expected by the application."

Suggestion for change

Indicates the entered value does not conform to the format expected by the application. See related aria-errormessage.

to

Indicates the value does not conform to the format expected by the application. See related aria-errormessage.

Thanks.

Link to the version of the specification or documentation you were looking at

ARIA 1.2 : aria-invalid

Does the issue exists in the editors draft (the editors draft is the most recent draft of the specification)? YES

@LaurenceRLewis LaurenceRLewis added the editorial a change to an example, note, spelling, grammar, or is related to publishing or the repo label Jul 1, 2024
@scottaohara
Copy link
Member

@LaurenceRLewis there is this part of the definition though that adds nuance to “entered”. Removing the word entered would imply that all empty fields should be marked invalid by default. And no one wants that

“When the user attempts to submit data involving a field for which aria-required is true, authors MAY use the aria-invalid attribute to signal there is an error. However, if the user has not attempted to submit the form, authors SHOULD NOT set the aria-invalid attribute on required widgets simply because the user has not yet entered data.”

@LaurenceRLewis LaurenceRLewis closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial a change to an example, note, spelling, grammar, or is related to publishing or the repo
Projects
None yet
Development

No branches or pull requests

2 participants