Skip to content

Commit d75a248

Browse files
Add role=image as synonym for role=img (#1370)
Co-authored-by: James Craig <[email protected]>
1 parent 3ebb415 commit d75a248

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

index.html

+14-1
Original file line numberDiff line numberDiff line change
@@ -4083,10 +4083,23 @@ <h2>Definition of Roles</h2>
40834083
</tbody>
40844084
</table>
40854085
</div>
4086+
<div class="role" id="image">
4087+
<rdef>image</rdef>
4088+
<div class="role-description">
4089+
<p>A container for a collection of <a>elements</a> that form an image. See synonym <rref>img</rref>.</p>
4090+
<div class="note" id="role-image-note-image">
4091+
<h5>Note regarding the ARIA 1.3 <code>image</code> role.</h5>
4092+
<p>The <code>image</code> was added to ARIA in version 1.3 as a
4093+
synonym of the ARIA 1.0 <rref>img</rref> role. The <code>image</code>
4094+
role improves syntactic consistency with the names of other roles,
4095+
which are complete words or concatenations of complete words.</p>
4096+
</div>
4097+
</div>
4098+
</div>
40864099
<div class="role" id="img">
40874100
<rdef>img</rdef>
40884101
<div class="role-description">
4089-
<p>A container for a collection of <a>elements</a> that form an image.</p>
4102+
<p>A container for a collection of <a>elements</a> that form an image. See synonym <rref>image</rref>.</p>
40904103
<p>An <code>img</code> can contain captions and descriptive text, as well as multiple image files that when viewed together give the impression of a single image. An <code>img</code> represents a single graphic within a document, whether or not it is formed by a collection of drawing <a>objects</a>. In order for elements with a <a>role</a> of <code>img</code> to be <a>perceivable</a>, authors MUST provide a label using the <pref>aria-label</pref> or <pref>aria-labelledby</pref> attribute.</p>
40914104
</div>
40924105
<table class="role-features">

0 commit comments

Comments
 (0)