Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add role=image as synonym for role=img #1370

Merged
merged 5 commits into from
May 6, 2021
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3881,10 +3881,21 @@ <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>In ARIA 1.3, the working group introduced <code>image</code> as a synonym to the <rref>img</rref> role. This was done to mitigate author confusion and errors due to the role being an outlier compared to all other roles, which are complete words or concatenations of complete words.</p>
scottaohara marked this conversation as resolved.
Show resolved Hide resolved
<p>Until implementations include sufficient support for <code>role="image"</code>, web authors are advised to use both roles as a fallback <code>role="image img"</code> or to use the <code>img</code> role alone.</p>
scottaohara marked this conversation as resolved.
Show resolved Hide resolved
</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