Skip to content

Other elements which may need special description computation conditions? #445

Open
@scottaohara

Description

@scottaohara

The accessible description computation section indicates that a table's caption, a summary element's subtree, or the value attribute of an input type=submit|button|reset can all be used as an accessible description if the elements in question have an overriding accName (e.g., aria-label).

While out of scope for resolving w3c/accname#69 and the companion HTML AAM PRs, I have been wondering why these elements are treated as special cases where other similar elements are not?

for instance, why doesn't button element's subtree become also become its accessible description if a stronger naming mechanism is used? Similarly, a table's caption becomes the accDescription if a table has an aria-label... but a fieldset's legend doesn't presently become the description if the fieldset has been given an aria-label.

It seems to me that either we need to expand this behavior to other similar elements, or these special cases shouldn't be there?

If expanding to other elements, then the following would need to be considered for addition to the special cases:

  • a element
  • button element
  • fieldset > legend
  • form control with associated label element
  • option element with a label attribute or child text

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions