Skip to content

Commit d89cabf

Browse files
authored
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.
1 parent ca48852 commit d89cabf

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

index.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,6 +1217,7 @@ <h2 id="docconformance">
12171217
<a href="#index-aria-application">`application`</a>,
12181218
<a href="#index-aria-document">`document`</a>,
12191219
<a href="#index-aria-img">`img`</a>,
1220+
<a href="#index-aria-img">`image`</a>
12201221
<a href="#index-aria-none">`none`</a>
12211222
or <a href="#index-aria-presentation">`presentation`</a>.
12221223
</p>
@@ -1563,6 +1564,7 @@ <h2 id="docconformance">
15631564
<a href="#index-aria-application">`application`</a>,
15641565
<a href="#index-aria-document">`document`</a>,
15651566
<a href="#index-aria-img">`img`</a>,
1567+
<a href="#index-aria-img">`image`</a>,
15661568
<a href="#index-aria-none">`none`</a>
15671569
or <a href="#index-aria-presentation">`presentation`</a>.
15681570
</p>
@@ -1581,7 +1583,7 @@ <h2 id="docconformance">
15811583
<td>
15821584
If the `img` has non-empty [^img/alt^] (`alt="some text"`) or an accessible name is provided another
15831585
<a data-cite="html-aam-1.0#img-element-accessible-name-computation">`img` naming method</a>:<br>
1584-
<code>role=<a href="#index-aria-img">img</a></code>
1586+
<code>role=<a href="#index-aria-img">img or image</a></code>
15851587
</td>
15861588
<td>
15871589
<p>
@@ -1605,7 +1607,7 @@ <h2 id="docconformance">
16051607
<a href="#index-aria-slider">`slider`</a>,
16061608
<a href="#index-aria-switch">`switch`</a>,
16071609
<a href="#index-aria-tab">`tab`</a> or
1608-
<a href="#index-aria-treeitem">`treeitem`</a>. (<code><a href="#index-aria-img">img</a></code> is also allowed, but NOT RECOMMENDED.)
1610+
<a href="#index-aria-treeitem">`treeitem`</a>. (<code><a href="#index-aria-img">img or image</a></code> is also allowed, but NOT RECOMMENDED.)
16091611
</p>
16101612
<p>
16111613
DPub Role:
@@ -1632,7 +1634,7 @@ <h2 id="docconformance">
16321634
<p id="el-img-no-alt" tabindex="-1">
16331635
If the `img` <a data-cite="html/images.html#unknown-images">lacks an `alt` attribute</a> and lacks any other
16341636
<a data-cite="html-aam-1.0#img-element-accessible-name-computation">`img` naming methods</a>:<br>
1635-
<code>role=<a href="#index-aria-img">img</a></code>
1637+
<code>role=<a href="#index-aria-img">img or image</a></code>
16361638
</p>
16371639
</div>
16381640
</td>
@@ -1642,7 +1644,7 @@ <h2 id="docconformance">
16421644
If the `img` has no `alt` attribute or accessible name:
16431645
<a><strong class="nosupport">No `role`</strong></a> other than the
16441646
<code>role=<a href="#index-aria-none">none</a></code> or <code><a href="#index-aria-presentation">presentation</a></code> roles.
1645-
(<code>role=<a href="#index-aria-img">img</a></code> is also allowed, but NOT RECOMMENDED.)
1647+
(<code>role=<a href="#index-aria-img">img or image</a></code> is also allowed, but NOT RECOMMENDED.)
16461648
</p>
16471649
<p>
16481650
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 @@ <h2 id="docconformance">
24762478
<p>
24772479
Roles:
24782480
<a href="#index-aria-application">`application`</a>,
2479-
<a href="#index-aria-document">`document`</a>
2480-
or <a href="#index-aria-img">`img`</a>.
2481+
<a href="#index-aria-document">`document`</a>,
2482+
<a href="#index-aria-img">`img`</a>
2483+
or <a href="#index-aria-img">`image`</a>.
24812484
</p>
24822485
<p>
24832486
<a data-cite="wai-aria-1.2#global_states">Global `aria-*` attributes</a> and
@@ -4416,7 +4419,7 @@ <h2>
44164419
</tr>
44174420
<tr>
44184421
<th tabindex="-1" id="index-aria-img">
4419-
<a data-cite="wai-aria-1.2#img">`img`</a>
4422+
<a data-cite="wai-aria-1.2#img">`img` or `image`</a>
44204423
</th>
44214424
<td>
44224425
<ul>

0 commit comments

Comments
 (0)