Skip to content

Commit

Permalink
Add role=image as synonym for role=img (#1370)
Browse files Browse the repository at this point in the history
Co-authored-by: James Craig <cookiecrook@users.noreply.github.com>
  • Loading branch information
scottaohara and cookiecrook committed May 6, 2021
1 parent 3ebb415 commit d75a248
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4083,10 +4083,23 @@ <h2>Definition of Roles</h2>
</tbody>
</table>
</div>
<div class="role" id="image">
<rdef>image</rdef>
<div class="role-description">
<p>A container for a collection of <a>elements</a> that form an image. See synonym <rref>img</rref>.</p>
<div class="note" id="role-image-note-image">
<h5>Note regarding the ARIA 1.3 <code>image</code> role.</h5>
<p>The <code>image</code> was added to ARIA in version 1.3 as a
synonym of the ARIA 1.0 <rref>img</rref> role. The <code>image</code>
role improves syntactic consistency with the names of other roles,
which are complete words or concatenations of complete words.</p>
</div>
</div>
</div>
<div class="role" id="img">
<rdef>img</rdef>
<div class="role-description">
<p>A container for a collection of <a>elements</a> that form an image.</p>
<p>A container for a collection of <a>elements</a> that form an image. See synonym <rref>image</rref>.</p>
<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>
</div>
<table class="role-features">
Expand Down

0 comments on commit d75a248

Please sign in to comment.