64
64
the following substantive additions and/or corrections have been proposed:
65
65
</ p >
66
66
< ul >
67
+ < li >
68
+ < a href ="https://github.com/w3c/html-aria/pull/453 "> 3 October 2023 - Correction:</ a >
69
+ Update the < a href ="#el-img "> `img`</ a > element allowances to be based on whether the element is named, or not.
70
+ </ li >
67
71
< li >
68
72
< a href ="https://github.com/w3c/html-aria/pull/462 "> 21 August 2023 - Addition:</ a >
69
73
Update the < a href ="#el-address "> `address`</ a > and < a href ="#el-hgroup "> `hgroup`</ a > element allowances per their updated mapping to the `group` role.
@@ -1560,9 +1564,13 @@ <h2 id="docconformance">
1560
1564
</ tr >
1561
1565
< tr >
1562
1566
< th id ="el-img " tabindex ="-1 ">
1563
- [^img^] with [^img/alt^]`="some text"`
1567
+ < div class ="correction proposed ">
1568
+ [^img^] with an accessible name.
1569
+ </ div >
1564
1570
</ th >
1565
1571
< td >
1572
+ If the `img` has non-empty [^img/alt^] (`alt="some text"`) or an accessible name is provided another
1573
+ < a data-cite ="html-aam-1.0#img-element-accessible-name-computation "> `img` naming method</ a > :< br >
1566
1574
< code > role=< a href ="#index-aria-img "> img</ a > </ code >
1567
1575
</ td >
1568
1576
< td >
@@ -1574,6 +1582,9 @@ <h2 id="docconformance">
1574
1582
< a href ="#index-aria-menuitem "> `menuitem`</ a > ,
1575
1583
< a href ="#index-aria-menuitemcheckbox "> `menuitemcheckbox`</ a > ,
1576
1584
< a href ="#index-aria-menuitemradio "> `menuitemradio`</ a > ,
1585
+ < span class ="addition ">
1586
+ < a href ="#index-aria-meter "> `meter`</ a > ,
1587
+ </ span >
1577
1588
< a href ="#index-aria-option "> `option`</ a > ,
1578
1589
< a href ="#index-aria-progressbar "> `progressbar`</ a > ,
1579
1590
< span class ="correction ">
@@ -1597,43 +1608,46 @@ <h2 id="docconformance">
1597
1608
</ td >
1598
1609
</ tr >
1599
1610
< tr >
1600
- < th id ="el-img-empty-alt " tabindex ="-1 ">
1601
- [^img^] with [^img/alt^]`=""`
1611
+ < th id ="el-img-no-name " tabindex ="-1 ">
1612
+ [^img^] with no accessible name.
1602
1613
</ th >
1603
1614
< td >
1604
- < code > role=< a href ="#index-aria-presentation "> presentation</ a > </ code >
1615
+ < div class ="proposed correction ">
1616
+ < p id ="el-img-empty-alt ">
1617
+ If the `img` has an empty `alt` ([^img/alt^]`=""`) and lacks any other
1618
+ < a data-cite ="html-aam-1.0#img-element-accessible-name-computation "> `img` naming methods</ a > :< br >
1619
+ < code > role=< a href ="#index-aria-none "> none</ a > </ code > ,
1620
+ < code > role=< a href ="#index-aria-presentation "> presentation</ a > </ code >
1621
+ </ p >
1622
+ < p id ="el-img-no-alt " tabindex ="-1 ">
1623
+ If the `img` < a data-cite ="html/images.html#unknown-images "> lacks an `alt` attribute</ a > and lacks any other
1624
+ < a data-cite ="html-aam-1.0#img-element-accessible-name-computation "> `img` naming methods</ a > :< br >
1625
+ < code > role=< a href ="#index-aria-img "> img</ a > </ code >
1626
+ </ p >
1627
+ </ div >
1605
1628
</ td >
1606
1629
< td >
1630
+ < div class ="correction proposed ">
1607
1631
< p >
1608
- < a > < strong class ="nosupport "> No `role`</ strong > </ a > other than < code > < a href ="#index-aria-presentation "> presentation</ a > </ code > , which is NOT RECOMMENDED
1632
+ If the `img` has no `alt` attribute or accessible name:
1633
+ < a > < strong class ="nosupport "> No `role`</ strong > </ a > other than the
1634
+ < code > role=< a href ="#index-aria-none "> none</ a > </ code > or < code > < a href ="#index-aria-presentation "> presentation</ a > </ code > roles.
1635
+ (< code > role=< a href ="#index-aria-img "> img</ a > </ code > is also allowed, but NOT RECOMMENDED.)
1609
1636
</ p >
1610
1637
< p >
1611
- < strong > No `aria-*` attributes</ strong >
1612
- except < a data-cite ="wai-aria-1.2#aria-hidden "> `aria-hidden="true"`</ a > .
1613
- </ p >
1614
- </ td >
1615
- </ tr >
1616
- < tr >
1617
- < th id ="el-img-no-alt " tabindex ="-1 ">
1618
- [^img^] < a data-cite ="html/images.html#unknown-images "> without an `alt` attribute</ a >
1619
- </ th >
1620
- < td >
1621
- < code > role=< a href ="#index-aria-img "> img</ a > </ code >
1622
- </ td >
1623
- < td >
1624
- < p >
1625
- If no < a data-cite ="accname-1.2/#dfn-accessible-name "> accessible name</ a > is provided via other
1626
- < a data-cite ="html-aam-1.0#img-element-accessible-name-computation "> `img` naming methods</ a > (e.g., `aria-labelledby`, `aria-label`):
1627
- < a > < strong class ="nosupport "> No `role`</ strong > </ a > other than < code > < a href ="#index-aria-img "> img</ a > </ code > , which is NOT RECOMMENDED.
1638
+ If the `img` has an empty `alt=""` attribute and no `aria-label` or `aria-labelledby` attributes to provide it an accessible name:
1639
+ < a > < strong class ="nosupport "> No `role`</ strong > </ a > other than the < code > role=< a href ="#index-aria-none "> none</ a > </ code > or
1640
+ < code > < a href ="#index-aria-presentation "> presentation</ a > </ code > roles, which are NOT RECOMMENDED.
1628
1641
</ p >
1629
1642
< p >
1630
1643
< strong > No `aria-*` attributes</ strong >
1631
1644
except < a data-cite ="wai-aria-1.2#aria-hidden "> `aria-hidden="true"`</ a > .
1632
1645
</ p >
1633
1646
< p >
1634
1647
Otherwise, if the `img` has an author defined accessible name,
1635
- see < a href ="#el-img "> `img` with `alt="some text"` </ a > .
1648
+ see < a href ="#el-img "> `img` with an accessible name </ a > .
1636
1649
</ p >
1650
+ </ div >
1637
1651
</ td >
1638
1652
</ tr >
1639
1653
< tr >
0 commit comments