@@ -1616,7 +1616,7 @@ <h2 id="docconformance">
|
1616 | 1616 | <td> |
1617 | 1617 | If the `img` has non-empty [^img/alt^] (`alt="some text"`) or an accessible name is provided by another |
1618 | 1618 | <a data-cite="html-aam-1.0#img-element-accessible-name-computation">`img` naming method</a>, |
1619 | | - or the `img` has no `alt` and has not been provided a name:<br> |
| 1619 | + or the `img` has no `alt` and no accessible name:<br> |
1620 | 1620 | <code>role=<a href="#index-aria-img">img or image</a></code> |
1621 | 1621 | </td> |
1622 | 1622 | <td> |
@@ -1655,11 +1655,18 @@ <h2 id="docconformance">
|
1655 | 1655 | <a data-cite="wai-aria-1.2#global_states">Global `aria-*` attributes</a> |
1656 | 1656 | and any `aria-*` attributes applicable to the allowed roles. |
1657 | 1657 | </p> |
| 1658 | + |
| 1659 | +<p> |
| 1660 | + If the `img` has no `alt` attribute or no accessible name: |
| 1661 | +<a><strong class="nosupport">No `role`</strong></a> other than the |
| 1662 | +<code>role=<a href="#index-aria-none">none</a></code> or <code><a href="#index-aria-presentation">presentation</a></code> roles. |
| 1663 | + (<code>role=<a href="#index-aria-img">img or image</a></code> is also allowed, but NOT RECOMMENDED.) |
| 1664 | +</p> |
1658 | 1665 | </td> |
1659 | 1666 | </tr> |
1660 | 1667 | <tr> |
1661 | 1668 | <th id="el-img-no-name" tabindex="-1"> |
1662 | | - [^img^] with no accessible name |
| 1669 | + [^img^] with empty `alt` and no accessible name |
1663 | 1670 | </th> |
1664 | 1671 | <td> |
1665 | 1672 | <div class="proposed correction"> |
@@ -1669,34 +1676,18 @@ <h2 id="docconformance">
|
1669 | 1676 | <code>role=<a href="#index-aria-none">none</a></code>, |
1670 | 1677 | <code>role=<a href="#index-aria-presentation">presentation</a></code> |
1671 | 1678 | </p> |
1672 | | -<p id="el-img-no-alt" tabindex="-1"> |
1673 | | - If the `img` <a data-cite="html/images.html#unknown-images">lacks an `alt` attribute</a> and lacks any other |
1674 | | -<a data-cite="html-aam-1.0#img-element-accessible-name-computation">`img` naming methods</a>:<br> |
1675 | | -<code>role=<a href="#index-aria-img">img or image</a></code> |
1676 | | -</p> |
1677 | 1679 | </div> |
1678 | 1680 | </td> |
1679 | 1681 | <td> |
1680 | 1682 | <div class="correction proposed"> |
1681 | 1683 | <p> |
1682 | | - If the `img` has no `alt` attribute or accessible name: |
1683 | | -<a><strong class="nosupport">No `role`</strong></a> other than the |
1684 | | -<code>role=<a href="#index-aria-none">none</a></code> or <code><a href="#index-aria-presentation">presentation</a></code> roles. |
1685 | | - (<code>role=<a href="#index-aria-img">img or image</a></code> is also allowed, but NOT RECOMMENDED.) |
1686 | | -</p> |
1687 | | -<p> |
1688 | | - If the `img` has an empty `alt=""` attribute and no `aria-label` or `aria-labelledby` attributes to provide it an accessible name: |
1689 | 1684 | <a><strong class="nosupport">No `role`</strong></a> other than the <code>role=<a href="#index-aria-none">none</a></code> or |
1690 | 1685 | <code><a href="#index-aria-presentation">presentation</a></code> roles, which are NOT RECOMMENDED. |
1691 | 1686 | </p> |
1692 | 1687 | <p> |
1693 | 1688 | <strong>No `aria-*` attributes</strong> |
1694 | 1689 | except <a data-cite="wai-aria-1.2#aria-hidden">`aria-hidden="true"`</a>. |
1695 | 1690 | </p> |
1696 | | -<p> |
1697 | | - Otherwise, if the `img` has an author defined accessible name, |
1698 | | - see <a href="#el-img">`img` with an accessible name</a>. |
1699 | | -</p> |
1700 | 1691 | </div> |
1701 | 1692 | </td> |
1702 | 1693 | </tr> |
|