mdn / mdn/content

Deprecating ARIA `img` role in favor of `image`

Open
#28,170 4 comments 0 reactions 0 assignees View on GitHub
Content:Accessibility
Dominant language
Markdown
Stars
11k
Forks
23.2k
Avg merge
2d 9h
Merged PRs (30d)
331

Description

### MDN URL

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/img_role

### What specific section or headline is this issue about?

_No response_

### What information was incorrect, unhelpful, or incomplete?

`img` role is being sunset in favor of `image`, e.g.

```html


(╯°□°)╯︵ ┻━┻



(╯°□°)╯︵ ┻━┻


```

### What did you expect to see?

The page should be renamed & redirected to `image` to reflect ARIA 1.3.

This has landed in

* Firefox 116 https://github.com/mdn/content/issues/27750
* Safari 15. source:
* Added in https://github.com/WebKit/WebKit/commit/ca2e239f7d07ad9bba0ffe55842de853b82bb481
* Changelog: https://github.com/WebKit/WebKit/blob/ca2e239f7d07ad9bba0ffe55842de853b82bb481/LayoutTests/ChangeLog#L1-L24
* Version for this commit https://github.com/WebKit/WebKit/blob/ca2e239f7d07ad9bba0ffe55842de853b82bb481/Source/WebCore/Configurations/Version.xcconfig#L24-L29
* Reference https://github.com/mdn/browser-compat-data/blob/923eeec1df7cd637240e38c0ddc790f2926de41a/browsers/safari.json#L176C1-L182

### Do you have any supporting links, references, or citations?

* WPT: https://wpt.fyi/results/wai-aria/role/synonym-roles.html?label=master&label=stable&aligned
* https://bugs.webkit.org/show_bug.cgi?id=224615

### Do you have anything more you want to share?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.