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

Getting the value: action steps #200

Open
4 tasks
MelSumner opened this issue Sep 11, 2023 · 3 comments
Open
4 tasks

Getting the value: action steps #200

MelSumner opened this issue Sep 11, 2023 · 3 comments
Assignees

Comments

@MelSumner
Copy link
Contributor

Breaking Issue #184 into action steps. Each of these items could be completed in distinct PRs, or a single PR.

  • remove bullet points from step 2C
  • re-word step 2C for improved clarity
  • add example for typical use (we have one for complex use)
  • propose a value computation algorithm (ensure to document exceptions/edge cases like contenteditable and lists)
@MelSumner MelSumner self-assigned this Sep 11, 2023
@MelSumner
Copy link
Contributor Author

Looking at my notes from different ACCVALUE discussions, after I condense them all, it seems like the biggest question is this:

Is there some implementor issue that means we need an accessible value computation algorithm?


Summary

There's the idea that obtaining an accessible value should be in the ACCNAME spec (Accessible Name, Description and Value).
But what would an ACCVALUE calculation look like?

Considerations

Let's look at what already exists.

From the combobox documenation in ARIA spec

The value of a combobox is represented by one of the following:

If the combobox element is a host language element that provides a value, such as an HTML input element, 
the value of the combobox is the value of that element.

Otherwise, the value of the combobox is represented by its descendant elements and can be determined 
using the same method used to compute the name of a button from its descendant content.

It appears as though we already have an acceptable way to do this.

Using the same method to compute the name of a button from its descendant content

Questions

  1. Is this question for more complex things like RTF? How should content in RTF be evaluated?
  2. Do we need to come up with something different, or can we use what already exists in other specifications to get the value of a given input?
  3. Would we expect that this would influence or change aria-valuenow?
  4. Are there implementor issues with the method used to compute the name of a button from its descendant content?

@accdc
Copy link
Contributor

accdc commented Feb 22, 2024

We'll probably have to go over it again during one of the ARIA meetings, but from what I can recall when we spoke of this late last year in one of the other meetings, we determined that it wasn't necessary to create a whole new algorithm, but instead do the following.

  1. Break out the value section within AccName where value is currently documented and move all of that into a new section for computing value within the spec.
  2. Reference the new Value section within the AccName algorithm where applicable.
  3. Update the different widget types within the Value section to better compute the value where needed on a case by case basis.

@jnurthen jnurthen assigned smhigley and MelSumner and unassigned MelSumner Feb 22, 2024
@spectranaut
Copy link
Contributor

We talked about this briefly in the meeting last week, and Sarah said she remembered this issue and wanted to take a stab at it: https://www.w3.org/2024/02/22-aria-minutes#t04

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

4 participants