- From: Bryan Garaventa <bryan.garaventa@levelaccess.com>
- Date: Fri, 12 Apr 2019 22:39:53 +0000
- To: 'ARIA Working Group' <public-aria@w3.org>
Hi, I've been doing some work on the naming computation logic for the legend role, and found some questions having to do with implicit mappings that I need some input on. First, I just realized that I've been misspelling the "role parity" project as "role parody", and have filed some likely amusing bugs with this. So, if anyone points this out, this was totally intentional and I knew exactly what I was doing. Here is the relevant AccName logic for this if it makes sense. 1. The fieldset element implicitly maps to role="group", so for the purpose of AccName, both of these are the same. 2. The legend element will implicitly map to role="legend", so both are the same, and will automatically set the name of either fieldset or role="group" if this is present as the nearest ancestor. 3. If fieldsets or groups are nested, the name for one group will only be set using the nearest legend within that container, or receive no name if no legend is found within that specific container. Example 1: Name for role=group is "Legend" <div role="group"> <div class="wrapper"> <div role="legend">Legend</div> </div> </div> Example 2: Name for outer role=group is "", Name for inner role=group is "Legend" <div role="group"> <div class="wrapper"> <div role="group"> <div role="legend">Legend</div> </div> </div> </div> 4. if Legends are nested, only the outer legend will be used to compute the name for the nearest fieldset element or role="group" ancestor. Does this make sense? Am I missing anything, or does something else make more sense? Secondly, there is some code I was looking at today with a client, which is invalid according to the HTML-ARIA Spec, but it still has to have a valid naming computation regardless, and it doesn't violate the ARIA spec in any way. The code is this: <fieldset> <legend role="heading" aria-level="3">Question 1 text?</legend> <div> Grouping of 15 radio buttons as possible answers. </div> </fieldset> So, what is the fieldset or role="group" name in this case? Thanks, Bryan Bryan Garaventa Principal Accessibility Architect Level Access, Inc. Bryan.Garaventa@LevelAccess.com 415.624.2709 (o) www.LevelAccess.com
Received on Friday, 12 April 2019 22:40:19 UTC