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

Further clarifications to form role #1764

Open
scottaohara opened this issue Jul 8, 2022 · 3 comments
Open

Further clarifications to form role #1764

scottaohara opened this issue Jul 8, 2022 · 3 comments
Assignees
Labels
clarification clarifying or correcting language that is either confusing, misleading or under-specified
Milestone

Comments

@scottaohara
Copy link
Member

Re: w3c/core-aam#11 (comment) and w3c/html-aria#423 - requiring a form be named seems like it should be scoped to only if someone wants to expose the form as a landmark.

@scottaohara scottaohara added the clarification clarifying or correcting language that is either confusing, misleading or under-specified label Jul 8, 2022
@spectranaut spectranaut added this to the ARIA 1.4 milestone Jul 14, 2022
@spectranaut
Copy link
Contributor

@scottaohara please explain this issue a little more?

@curtbellew
Copy link

This makes sense to me. Because my ACC checker does check for duplicate landmarks, I would add that I think it's also best to name a form when there is more than one form on the page. Similar to the nav tag which can often appear more than once on a page - it's best in that case to name the nav regions ie 'Main' vs 'Some other'. That practice seems to apply here.

@scottaohara
Copy link
Member Author

to help clarify this further:

The ARIA spec presently says that a role=form is required to be named.

But a form's role may still be announced even if it doesn't have a name, as the Core AAM issue/PR has resulted in.

Previously, a form (HTML element or if role=form was used) was only consistently exposed as a form if it had a name. Now, naming the form will promote it to a landmark... but it may still be exposed as a form per the linked change.

So the clarity here should be around "why" is a name for a form required. And that likely could be written up to touch on two topics:

  1. to promote it to a landmark
  2. to help distinguish different forms from each other that are present on the same web page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification clarifying or correcting language that is either confusing, misleading or under-specified
Projects
None yet
Development

No branches or pull requests

3 participants