aria icon indicating copy to clipboard operation
aria copied to clipboard

Address title attribute and name prohibited elements

Open scottaohara opened this issue 1 year ago • 6 comments

This PR does a few things:

  • Revises naming computation section to
    • identify elements which are name prohibited, reducing these items accName algorithm to only accept names from aria-label/aria-labelledby. Title specifically called out to contribute to description, not name. (see: https://github.com/w3c/html-aam/issues/552) - closes https://github.com/w3c/html-aam/issues/506
    • revise labelling of a and area element naming, as their href-less versions are name prohibited
    • Fix 'Sectioning and Grouping Elements' to just "Sectioning Elements' (the concept of grouping elements was removed. More changes need to happen here.
    • Removes Text-level elements naming computation section (these largely all became part of the prohibited naming section)
    • Adds new "elements which cannot be named" section (a couple of these were part of the text-level elements section, so they needed a place to go, as simply folding them into name prohibited didn't make sense, to me)
  • addresses marking role=listitem as name prohibited - closes #1712
  • addresses the desire to make sure the title attribute does not produce redundant information (e.g., <div title=foo>foo</div> title should not return a desc. Nor should it for <button title=foo aria-label=foo>...</button> - as the title matches the content of the div, and the accName of the button)

I currently don't have header and footer listed in this update - because I really would rather not put them into the name prohibited category when they aren't banner/contentinfo landmarks, and would really just hope we can get https://github.com/w3c/aria/pull/1931 and updating the non-landmark header and footer elements to the new proposed roles.

Test, Documentation and Implementation tracking

Once this PR has been reviewed and has consensus from the working group, tests should be written and issues should be opened on browsers. Add N/A and check when not applicable.

  • [ ] "author MUST" tests:
  • [ ] "user agent MUST" tests:
  • [ ] Browser implementations (link to issue or commit):
    • WebKit:
    • Gecko:
    • Blink:
  • [ ] Does this need AT implementations?
  • [ ] Related APG Issue/PR:
  • [ ] MDN Issue/PR:

Preview | Diff

scottaohara avatar Jul 24 '24 20:07 scottaohara