RE: Regarding role=generic and AccName

Thanks, talking this over sounds good, perhaps a deep dive topic?



In the meantime, I've updated the live algorithm to correctly reflect the lack of a name on implicitly generic elements such as div or span when aria-label or aria-labelledby are set on the root node.

https://whatsock.github.io/w3c-alternative-text-computation/Editable%20Live%20Input%20AccName%20Test.html



E.G.



<div id="test" aria-label="Something"></div>



Returns "" as the name.



As opposed to:



<div id="test" role="button">

<div aria-label="Something"></div>

</div>



Which returns "Something" as the name.


Bryan Garaventa
Principal Accessibility Architect
Level Access, Inc.
Bryan.Garaventa@LevelAccess.com<mailto:Bryan.Garaventa@LevelAccess.com>
415.624.2709 (o)
www.LevelAccess.com<http://www.levelaccess.com/>

From: Scott O'Hara <scott.ohara@microsoft.com>
Sent: Wednesday, June 15, 2022 4:21 PM
To: Bryan Garaventa <bryan.garaventa@levelaccess.com>; ARIA <public-aria@w3.org>
Subject: RE: Regarding role=generic and AccName

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

The editor's draft of ARIA in HTML has many more updated mappings for elements.  E.g., blockquote, caption, del....  Also these elements' roles are specified in HTML AAM - ARIA in HTML's mentioning of them is informative.  AND in this editor's draft / proposed updates to the official rec - the elements which are prohibited from author naming are specifically called out.  Please take a look, as this may be helpful for your question.

HTML AAM<https://w3c.github.io/html-aam/> also has some elements that had were waiting on more info about generic / had questions if we really wanted to map certain elements to generic, or something else - Remaining elements to revise mapping * Issue #373 * w3c/html-aam (github.com)<https://github.com/w3c/html-aam/issues/373>.  We should probably discuss this HTML AAM issue in one of the upcoming ARIA meetings.

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

From: Bryan Garaventa<mailto:bryan.garaventa@levelaccess.com>
Sent: Wednesday, June 15, 2022 5:19 PM
To: ARIA<mailto:public-aria@w3.org>
Subject: [EXTERNAL] Regarding role=generic and AccName

Hi,
Are div and span tags the only elements that are implicitly mapped as generic? These are the only ones called out in the 1.2 spec.

I was looking to see if there was any correlation with the ARIA in HTML spec for these elements and couldn't find any.

E.G. If div and span are generic, what are these implicitly meant to be?

A without href
Abbr
Address
Area without href
Audio
B
Bdi
Bdo
Blockquote
Br
Canvas
Caption
Cite
Code
Col
Colgroup
Data
Del
Dl
Em
Embed
Figcaption
Hgroup
I
Iframe
Ins
Kbd
Label
Legend
Map
Mark
Meter
Object
P
Picture
Pre
Q
Rp
Rt
Ruby
S
Samp
Slot
Small
Strong
Sub
Sup
Time
Track
U
Var
Video
Wbr

Note this is simply a list of ambiguous elements that match no implicit role mapping according to the spec at
https://www.w3.org/TR/html-aria/<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.w3.org%2FTR%2Fhtml-aria%2F&data=05%7C01%7Cscott.ohara%40microsoft.com%7Cce111b01351348842d7a08da4f14c903%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637909247949218931%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2BEne%2FA%2FDcevpwOrVsqrRbTbEvTbcgCLzaBaGY1Q640w%3D&reserved=0>

What I would like to know is which ones, if any, should also be designated as implicitly generic, since this will impact which elements are allowed to have accessible names or not when aria-labelledby or aria-label is applied without an explicit role.

Thanks,
Bryan




Bryan Garaventa
Principal Accessibility Architect
Level Access, Inc.
Bryan.Garaventa@LevelAccess.com<mailto:Bryan.Garaventa@LevelAccess.com>
415.624.2709 (o)
www.LevelAccess.com<https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.levelaccess.com%2F&data=05%7C01%7Cscott.ohara%40microsoft.com%7Cce111b01351348842d7a08da4f14c903%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637909247949218931%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=xZuQ9jsHQP%2F0nol197fvXu01rSFZM5zpjs%2B3P8PD4so%3D&reserved=0>

Received on Thursday, 16 June 2022 00:23:41 UTC