Skip to content

Commit

Permalink
Merge pull request #2428 from w3c/scottaohara-patch-1
Browse files Browse the repository at this point in the history
add note to img alt="" table
  • Loading branch information
scottaohara authored Feb 7, 2025
2 parents 67e53b2 + 388bd8d commit 077621f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions html-aam/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3137,16 +3137,14 @@ <h4 id="el-img">`img`</h4>
</tr>
</tbody>
</table>
<h4 id="el-img-empty-alt">`img` <span class="el-context">(`alt` attribute value is the empty string, i.e. `alt=""` or `alt` with no value in the markup)</span></h4>
<h4 id="el-img-empty-alt">`img` <span class="el-context">(`alt` attribute value is the empty string, i.e., `alt=""` or `alt` with no value in the markup))</span></h4>
<table aria-labelledby="el-img-empty-alt">
<tbody>
<tr>
<th>HTML Specification</th>
<td>
<a data-cite="html">`img`</a>
<span class="el-context"
>(<a data-cite="html/embedded-content.html#attr-img-alt">`alt`</a> attribute value is the empty string, i.e., `alt=""` or `alt` with no value in the markup)</span
>
<span class="el-context">(<a data-cite="html/embedded-content.html#attr-img-alt">`alt`</a> attribute value is the empty string, i.e., `alt=""` or `alt` with no value in the markup)</span>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -3191,7 +3189,13 @@ <h4 id="el-img-empty-alt">`img` <span class="el-context">(`alt` attribute value
<!-- <th><a href="#accessible-name-and-description-computation">Naming Algorithm</a></th> -->
<tr>
<th>Comments</th>
<td></td>
<td>
<p class="note">
If an `img` has an empty `alt`, but has been provided an <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>
via another valid naming mechanism per the <a href="#el-img-name">naming steps of this specification</a>, user agents will expose the element
with its implicit `image` role.
</p>
</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -16261,7 +16265,7 @@ <h4>`figure` Element Accessible Name Computation</h4>
</ol>
</section>
<section>
<h4>`img` Element Accessible Name Computation</h4>
<h4 id="el-img-name">`img` Element Accessible Name Computation</h4>
<ol>
<li>
If the `img` element has an <a data-cite="wai-aria-1.2/#aria-label">`aria-label`</a> or an <a data-cite="wai-aria-1.2/#aria-labelledby">`aria-labelledby`</a> attribute the
Expand Down

0 comments on commit 077621f

Please sign in to comment.