Skip to content

Commit 8a9828a

Browse files
rahimabdiRahim Abdi
and
Rahim Abdi
authored
Editorial: Update lone reference of "alternative text" to "text alternative" (#2062)
Closes [#2059](#2059) In ARIA 1.2, there is a single reference to "alternative text" in the `presentation` role description section however, all other instances in the spec use the term "text alternative". For consistency, this PR updates the lone instance of "alternative text" to "text alternative". **NOTE**: This aligns with WCAG which has no instances of the term "alternative text". Co-authored-by: Rahim Abdi <rahim_abdi@apple.com>
1 parent 05c5c5e commit 8a9828a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5987,7 +5987,7 @@ <h4>Plain HTML or Polyfill DOM Result of the MathML Quadratic Formula</h4>
59875987
&lt;span&gt; Sample Content &lt;a href="...">let's go!&lt;/a> &lt;/span&gt;
59885988
</pre>
59895989
<p>In HTML, the <code>&lt;img&gt;</code> <a>element</a> is treated as a single entity regardless of the type of image file. Consequently, using <code>role="none"</code> or <code>role="presentation"</code> on an HTML <code>img</code> is equivalent to using <code>aria-hidden="true"</code>. In order to make the image contents accessible, authors can embed the object using an <code>&lt;object&gt;</code> or <code>&lt;iframe&gt;</code> <a>element</a>, or use inline <abbr title="Scalable Vector Graphics">SVG</abbr> code, and follow the accessibility guidelines for the image content.</p>
5990-
<p>Authors SHOULD NOT provide meaningful alternative text (for example, use <code>alt=""</code> in HTML) when the <code>none</code>/<code>presentation</code> role is applied to an image.</p>
5990+
<p>Authors SHOULD NOT provide a meaningful text alternative (for example, use <code>alt=""</code> in HTML) when the <code>none</code>/<code>presentation</code> role is applied to an image.</p>
59915991
<p>In the following code sample, the containing <rref>img</rref> and is appropriately labeled by the caption paragraph. In this example the <code>img</code> element can be marked as <rref>none</rref>/<rref>presentation</rref> because the role and the text alternatives are provided by the containing element.</p>
59925992
<pre class="example highlight">&lt;div role="img" aria-labelledby="caption"&gt;
59935993
&lt;img src="example.png" role="none" alt=""&gt;

0 commit comments

Comments
 (0)