w3c / accname

Accessible Name and Description Computation
https://w3c.github.io/accname/
61 stars 23 forks source link

AccName computation Step 2B list formatting is unclear #143

Open cookiecrook opened 3 years ago

cookiecrook commented 3 years ago

AccName Computation Step 2B is:

Otherwise:

So the sub-bullets of the main second bullet (description computation) seems as if they are intended to apply to the first bullet as well (name computation). But they aren't formatted that way, so it looks like they only apply to the description sub-bullet. I was thinking the following could be simplified:

Otherwise:

  • if computing a name, and the current node has an aria-labelledby attribute that contains at least one valid IDREF, and the current node is not already part of an aria-labelledby traversal, process its IDREFs in the order they occur:
  • or, if computing a description, and the current node has an aria-describedby attribute that contains at least one valid IDREF,

Could be changed to:

Otherwise, if the current node referenced one or more IDREFs relevant to the computation type (aria-labelledby for name computation and aria-describedby for description computation), and the current node was not previously referenced in the traversal, process its IDREFs in the order they occur:

Then the sub-bullets (i through iii) would apply to this single reference.

cookiecrook commented 3 years ago

Alternately,

accdc commented 2 years ago

This looks good to me.