Bug 224615

Summary: AX: Add ARIA role "image" as a new role, and leave "img" as a synonym
Product: WebKit Reporter: James Craig <jcraig>
Component: AccessibilityAssignee: Tyler Wilcock <twilco.o>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, cfleizach, dmazzoni, ews-watchlist, hi, jdiggs, samuel_white, twilco.o, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Description James Craig 2021-04-15 11:09:05 PDT
AX: Add ARIA role "image" as a new role, and leave "img" as a synonym

It hasn't yet been merged into the editor's draft, but it will be here.
https://w3c.github.io/aria/#image

The 'img' role will remain, but be deprecated eventually after browser support moves sufficiently to support role="image"
https://w3c.github.io/aria/#img

I don't think WebKit should ever remove "img" as a role synonym, but the returned role string (reverse lookup of the enum) should use the new one: "image"

Related ARIA issues/PRs:
https://github.com/w3c/aria/issues/758
https://github.com/w3c/aria/pull/1370
https://github.com/w3c/aria/issues/1456
Comment 1 Radar WebKit Bug Importer 2021-04-15 11:09:14 PDT
<rdar://problem/76712968>
Comment 2 James Craig 2021-04-15 11:21:28 PDT
related bug related bug 224617
Comment 3 Tyler Wilcock 2021-07-11 20:01:50 PDT
Created attachment 433296 [details]
Patch
Comment 4 chris fleizach 2021-07-12 09:10:54 PDT
thanks!
Comment 5 EWS 2021-07-12 09:14:36 PDT
Committed r279829 (239590@main): <https://commits.webkit.org/239590@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 433296 [details].