From d89cabf3be410e185de8d3ac3bed08dfcaff0be0 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Fri, 13 Dec 2024 13:35:50 -0500 Subject: [PATCH 1/3] Update: acknowledge the image role role=`image` is the preferred default role, over the previous and still valid `img` role. update the spec to call out the existence / allowance of the `image` role. --- index.html | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 2b879a4..3946f08 100644 --- a/index.html +++ b/index.html @@ -1217,6 +1217,7 @@

`application`, `document`, `img`, + `image` `none` or `presentation`.

@@ -1563,6 +1564,7 @@

`application`, `document`, `img`, + `image`, `none` or `presentation`.

@@ -1581,7 +1583,7 @@

If the `img` has non-empty [^img/alt^] (`alt="some text"`) or an accessible name is provided another `img` naming method:
- role=img + role=img or image

@@ -1605,7 +1607,7 @@

`slider`, `switch`, `tab` or - `treeitem`. (img is also allowed, but NOT RECOMMENDED.) + `treeitem`. (img or image is also allowed, but NOT RECOMMENDED.)

DPub Role: @@ -1632,7 +1634,7 @@

If the `img` lacks an `alt` attribute and lacks any other `img` naming methods:
- role=img + role=img or image

@@ -1642,7 +1644,7 @@

If the `img` has no `alt` attribute or accessible name: No `role` other than the role=none or presentation roles. - (role=img is also allowed, but NOT RECOMMENDED.) + (role=img or image is also allowed, but NOT RECOMMENDED.)

If the `img` has an empty `alt=""` attribute and no `aria-label` or `aria-labelledby` attributes to provide it an accessible name: @@ -2476,8 +2478,9 @@

Roles: `application`, - `document` - or `img`. + `document`, + `img` + or `image`.

Global `aria-*` attributes and @@ -4416,7 +4419,7 @@

- `img` + `img` or `image`