Skip to content

Commit 67c4b9d

Browse files
Merge pull request #212 from w3c/issue_166
limit the allowed roles on img elements
2 parents 9599ae9 + dfb3259 commit 67c4b9d

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

Diff for: index.html

+21-10
Original file line numberDiff line numberDiff line change
@@ -1108,17 +1108,29 @@ <h2 id="docconformance">
11081108
</tr>
11091109
<tr id="el-img" tabindex="-1">
11101110
<td>
1111-
<code><a>img</a> with <a data-cite=
1111+
<code><a>img</a></code> with <code><a data-cite=
11121112
"html/embedded-content.html#attr-img-alt">alt</a>="some text"</code>
11131113
</td>
11141114
<td>
11151115
<code>role=<a href="#index-aria-img">img</a></code>
11161116
</td>
11171117
<td>
11181118
<p>
1119-
<a><strong>Any</strong> `role`</a> except
1120-
<a href="#index-aria-none">`none`</a>
1121-
or <a href="#index-aria-presentation">`presentation`</a>.
1119+
Roles:
1120+
<a href="#index-aria-button">`button`</a>,
1121+
<a href="#index-aria-checkbox">`checkbox`</a>,
1122+
<a href="#index-aria-link">`link`</a>,
1123+
<a href="#index-aria-menuitem">`menuitem`</a>,
1124+
<a href="#index-aria-menuitemcheckbox">`menuitemcheckbox`</a>,
1125+
<a href="#index-aria-menuitemradio">`menuitemradio`</a>,
1126+
<a href="#index-aria-option">`option`</a>,
1127+
<a href="#index-aria-progressbar">`progressbar`</a>,
1128+
<a href="#index-aria-scrollbar">`scrollbar`</a>,
1129+
<a href="#index-aria-separator">`separator`</a>,
1130+
<a href="#index-aria-slider">`slider`</a>,
1131+
<a href="#index-aria-switch">`switch`</a>,
1132+
<a href="#index-aria-tab">`tab`</a> or
1133+
<a href="#index-aria-treeitem">`treeitem`</a>
11221134
</p>
11231135
<p>
11241136
<a href="#index-aria-global">Global `aria-*` attributes</a> and
@@ -1129,7 +1141,7 @@ <h2 id="docconformance">
11291141
</tr>
11301142
<tr id="el-img-empty-alt" tabindex="-1">
11311143
<td>
1132-
<code><a>img</a> with <a data-cite=
1144+
<code><a>img</a></code> with <code><a data-cite=
11331145
"html/embedded-content.html#attr-img-alt">alt</a>=""</code>
11341146
</td>
11351147
<td>
@@ -1149,19 +1161,18 @@ <h2 id="docconformance">
11491161
</tr>
11501162
<tr id="el-img-no-alt" tabindex="-1">
11511163
<td>
1152-
<code><a>img</a> with no <a data-cite="html/images.html#unknown-images">alt</a>=""</code>
1164+
<code><a>img</a></code> without <code><a data-cite="html/images.html#unknown-images">alt</a></code> attribute
11531165
</td>
11541166
<td>
11551167
<code>role=<a href="#index-aria-img">img</a></code>
11561168
</td>
11571169
<td>
11581170
<p>
1159-
<a><strong>Any</strong> `role`</a>
1171+
If not provided an author defined accessible name by other methods: <strong class="nosupport">No `role`</strong>, and <strong>no `aria-*` attributes</strong> except
1172+
`aria-hidden`.
11601173
</p>
11611174
<p>
1162-
<a href="#index-aria-global">Global `aria-*` attributes</a> and
1163-
any `aria-*` attributes applicable to the allowed roles and
1164-
implied role (if any).
1175+
Otherwise, if the `img` has an author defined accessible name, see <a href="#el-img">`img alt="some text"`</a>.
11651176
</p>
11661177
</td>
11671178
</tr>

0 commit comments

Comments
 (0)