diff --git a/html-aam/index.html b/html-aam/index.html index a1a55b8e7..41c3451e0 100644 --- a/html-aam/index.html +++ b/html-aam/index.html @@ -3016,8 +3016,14 @@

`img`

[[wai-aria-1.2]] - `image` - or `img` role +
+ If element has a non-empty `src` or `srcset` attribute, an accessible name, or both, then map to the + `img` or `image` role. +
+
+ Otherwise, if the element has no `src` or `srcset` attribute, or if the attribute(s) are set to the empty string, and the `img` has no `alt` attribute or accessible name, then map to + the `none` or `presentation` role. +
@@ -3026,7 +3032,8 @@

`img`

- MSAA + IAccessible2 + MSAA + + IAccessible2
Use WAI-ARIA mapping
@@ -3054,6 +3061,10 @@

`img`

Comments +

+ An `img` with a non-empty `src`, `srcset`, or both and no `alt` attribute or accessible name will still map to the `image` role, + unless another role has been explicitly provided by an author. +

ARIA 1.3 adds the `image` role as the preferred synonym to the ARIA 1.0 `img` role. The expected computed role for named `img` elements is now "image".

@@ -3066,9 +3077,7 @@

`img` (`alt` attribute value HTML Specification `img` - (`alt` attribute value is the empty string, i.e., `alt=""` or `alt` with no value in the markup) + (`alt` attribute value is the empty string.) @@ -3113,7 +3122,13 @@

`img` (`alt` attribute value Comments - + +

Authors can specify the `alt` attribute to be the empty string by either marking it up as `alt=""` or `alt` with no value.

+

+ If an `img` has been provided an `alt=""`, but also has an `aria-label` or `aria-labelledby` attribute specified which returns an accessible name, then the element maps to the + `image` role. +

+