Skip to content

Commit 077621f

Browse files
authored
Merge pull request #2428 from w3c/scottaohara-patch-1
add note to img alt="" table
2 parents 67e53b2 + 388bd8d commit 077621f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

html-aam/index.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3137,16 +3137,14 @@ <h4 id="el-img">`img`</h4>
31373137
</tr>
31383138
</tbody>
31393139
</table>
3140-
<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>
3140+
<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>
31413141
<table aria-labelledby="el-img-empty-alt">
31423142
<tbody>
31433143
<tr>
31443144
<th>HTML Specification</th>
31453145
<td>
31463146
<a data-cite="html">`img`</a>
3147-
<span class="el-context"
3148-
>(<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
3149-
>
3147+
<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>
31503148
</td>
31513149
</tr>
31523150
<tr>
@@ -3191,7 +3189,13 @@ <h4 id="el-img-empty-alt">`img` <span class="el-context">(`alt` attribute value
31913189
<!-- <th><a href="#accessible-name-and-description-computation">Naming Algorithm</a></th> -->
31923190
<tr>
31933191
<th>Comments</th>
3194-
<td></td>
3192+
<td>
3193+
<p class="note">
3194+
If an `img` has an empty `alt`, but has been provided an <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>
3195+
via another valid naming mechanism per the <a href="#el-img-name">naming steps of this specification</a>, user agents will expose the element
3196+
with its implicit `image` role.
3197+
</p>
3198+
</td>
31953199
</tr>
31963200
</tbody>
31973201
</table>
@@ -16261,7 +16265,7 @@ <h4>`figure` Element Accessible Name Computation</h4>
1626116265
</ol>
1626216266
</section>
1626316267
<section>
16264-
<h4>`img` Element Accessible Name Computation</h4>
16268+
<h4 id="el-img-name">`img` Element Accessible Name Computation</h4>
1626516269
<ol>
1626616270
<li>
1626716271
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

0 commit comments

Comments
 (0)