Bug 224615 - AX: Add ARIA role "image" as a new role, and leave "img" as a synonym
Summary: AX: Add ARIA role "image" as a new role, and leave "img" as a synonym
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Tyler Wilcock
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-04-15 11:09 PDT by James Craig
Modified: 2021-07-12 09:14 PDT (History)
10 users (show)

See Also:


Attachments
Patch (21.99 KB, patch)
2021-07-11 20:01 PDT, Tyler Wilcock
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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].