Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
183 changes: 80 additions & 103 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
the following substantive additions and/or corrections have been proposed:
</p>
<ul>
<!--<li>
<a href="https://github.com/w3c/html-aria/pull/...">15 April 2024 - Addition:</a>
Add author rules for the <a href="#att-popovertarget">`popovertarget`</a> attribute.
</li>-->
<li>
<a href="https://github.com/w3c/html-aria/pull/525">23 December 2024 - Addition:</a>
Update the <a href="#el-img">`img`</a> element to allow the `math` role.
Expand Down Expand Up @@ -3622,7 +3626,7 @@ <h3 id="docconformance-attr">
</th>
<th>
<p id="implicit-attr">
Implicit ARIA semantics
Implicit ARIA semantics
</p>
</th>
<th>
Expand All @@ -3641,19 +3645,61 @@ <h3 id="docconformance-attr">
<td>
<div class="correction">
<p>
Use the `checked` attribute on any element that is allowed the `checked` attribute in HTML.
Use the <a data-cite="html/input.html#dom-input-indeterminate">`indeterminate`</a> IDL attribute to indicate the "mixed" state for <a data-cite="html/input.html#checkbox-state-(type=checkbox)">`input type=checkbox`</a> elements.
</p>
<p>
Authors MUST NOT use the <a data-cite="wai-aria-1.2#aria-checked">`aria-checked`</a> attribute on any element where the <a data-cite="html/form-control-infrastructure.html#concept-fe-checked">checkedness</a>, or the
Authors MUST NOT use the <a data-cite="wai-aria-1.2#aria-checked">`aria-checked`</a> attribute on any element where the
<a data-cite="html/form-control-infrastructure.html#concept-fe-checked">checkedness</a>, or the
indeterminate checked value of the element can be in opposition to the current value of the `aria-checked` attribute.
</p>
</div>
</td>
</tr>
<tr id="att-command" tabindex="-1">
<th>
<p>
Authors MAY use the `aria-checked` attribute on any other element with a WAI-ARIA role which allows the attribute.
Element with [^html-global/contenteditable^]`=true`
or
element without `contenteditable` attribute whose closest
ancestor with a `contenteditable` attribute has
`contenteditable="true"`.
</p>
<p class="note">
This is equivalent to the <a data-cite="html/interaction.html#dom-iscontenteditable">`isContentEditable`</a>
IDL attribute.
</p>
</th>
<td>
`aria-expanded="..."`, `aria-details`
</td>
<td>
<p>
Authors MUST NOT use the `aria-expanded` attribute on any element which also has a `command` attribute.
</p>
<p>
Authors MAY use `aria-details` to modify whether or how the element exposes a details relationship
with its associated element or other relevant elements.
</p>
</td>
</tr>
<tr id="att-contenteditable" tabindex="-1">
<th>
<p>
Element with [^html-global/contenteditable^]`=true`
or
element without `contenteditable` attribute whose closest
ancestor with a `contenteditable` attribute has
`contenteditable="true"`.
</p>
<p class="note">
This is equivalent to the <a data-cite="html/interaction.html#dom-iscontenteditable">`isContentEditable`</a>
IDL attribute.
</p>
</th>
<td>
`aria-readonly="false"`
</td>
<td>
Authors MUST NOT set `aria-readonly="true"` on an element that has `isContentEditable="true"`.
</td>
</tr>
<tr id="att-disabled" tabindex="-1">
<th>
Any element where the [^input/disabled^]
Expand All @@ -3665,13 +3711,6 @@ <h3 id="docconformance-attr">
`aria-disabled="true"`
</td>
<td>
<p>
Use the `disabled` attribute on any element that is allowed the `disabled` attribute in HTML.
</p>
<p>
Authors MAY use the <a data-cite="wai-aria-1.2#aria-disabled">`aria-disabled`</a> attribute on any element that is allowed the `disabled` attribute in HTML,
or any element with a WAI-ARIA role which allows the `aria-disabled` attribute</a>.
</p>
<p>
Authors SHOULD NOT use `aria-disabled="true"` on any element which also has a `disabled` attribute.
</p>
Expand All @@ -3689,21 +3728,23 @@ <h3 id="docconformance-attr">
</td>
<td>
<p>
Authors MAY use the <a data-cite="wai-aria-1.2#aria-hidden">`aria-hidden`</a> attribute on any HTML element that allows <a data-cite="wai-aria-1.2#global_states">global `aria-*` attributes</a> to
be specified, with the exception of focusable elements and the <a href="#el-body">`body`</a> element.
It is generally NOT RECOMMENDED for authors to use `aria-hidden="true"` on any element which also has the `hidden` attribute specified.
Authors MUST NOT use `aria-hidden="true"` on any element which also has the `hidden` attribute specified in the `until-found` state.
</p>
<p>
It is generally NOT RECOMMENDED for authors to use `aria-hidden="true"` on any element which also has the `hidden` attribute specified. However, authors MUST NOT use `aria-hidden="true"` on any element which also has the `hidden` attribute specified in the `until-found` state.
Authors MAY use the <a data-cite="wai-aria-1.2#aria-hidden">`aria-hidden`</a> attribute on any HTML element that allows
<a data-cite="wai-aria-1.2#global_states">global `aria-*` attributes</a> to
be specified, with the exception of focusable elements. The attribute MUST NOT be used on the <a href="#el-body">`body`</a> and <a href="#el-html">`html`</a> elements.
</p>
<div class="note">
A focusable element is any element which can be focused by use of keyboard or pointer device. Focusable elements are not always elements which
can be tabbed to via a keyboard. For instance, an element with `tabindex="-1"` is focusable but is not a tabbable element.
can be tabbed to with a keyboard. For instance, an element with `tabindex="-1"` is focusable but is not a tabbable element.
</div>
<div class="note">
Using `aria-hidden="true"` on an element that has the `hidden` attribute is at best an unnecessary redundancy. At worst its usage can
prevent access to the content if the `hidden` attribute's default UA style of `display: none` has been purposeuflly overwritten by an author or user style sheet.
Finally, if the `hidden` attribute has the value of `until-found`, the use of `aria-hidden=true` will prevent this content from being discoverable to users of assistive
technology when it is found via a browser's in-page find feature and visually rendered to users.
Additionally, if the `hidden` attribute has the value of `until-found`, the use of `aria-hidden=true` will prevent this content from being discoverable to
users of assistive technology when it is found via a browser's in-page find feature and visually rendered to users.
</div>
</td>
</tr>
Expand All @@ -3716,33 +3757,35 @@ <h3 id="docconformance-attr">
</td>
<td>
<p>
Use the `placeholder` attribute on any element that is allowed the
`placeholder` attribute in HTML.
Authors MUST NOT use the `aria-placeholder` attribute on any element which also has a `placeholder` attribute.
</p>
</td>
</tr>
<tr id="att-popovertarget" tabindex="-1">
<th>
Any element where the <a data-cite="html/popover.html#the-popover-target-attributes">`popovertarget`</a> attribute is allowed
</th>
<td>
`aria-expanded="..."`, `aria-details`
</td>
<td>
<p>
Authors MAY use the <a data-cite="wai-aria-1.2#aria-placeholder">`aria-placeholder`</a> attribute on any element that is allowed the `placeholder` attribute in HTML,
or any element with a WAI-ARIA role which allows the `aria-placeholder` attribute.
Authors MUST NOT use the `aria-expanded` attribute on any element which also has a `popovertarget` attribute.
</p>
<p>
Authors MUST NOT use the `aria-placeholder` attribute on any element which also has a `placeholder` attribute.
Authors MAY use `aria-details` to modify whether or how the element exposes a details relationship
with its associated `popover` or other relevant elements.
</p>
</td>
</tr>
<tr id="att-max" tabindex="-1">
<th>
Any element where the `max` attribute is allowed: `meter` [^meter/max^], `progress` [^progress/max^], and `input` [^input/max^]
Any element where the `max` attribute is allowed
</th>
<td>
`aria-valuemax="..."`
</td>
<td>
<p>
Use the `max` attribute on any element that is
allowed the `max` attribute in HTML.
</p>
<p>
Authors MAY use the <a data-cite="wai-aria-1.2#aria-valuemax">`aria-valuemax`</a> attribute on any other element with a WAI-ARIA role which allows the `aria-valuemax` attribute.
</p>
<p>
Authors SHOULD NOT use `aria-valuemax` on any element which allows the `max` attribute. Use the `max` attribute instead.
</p>
Expand All @@ -3753,19 +3796,12 @@ <h3 id="docconformance-attr">
</tr>
<tr id="att-min" tabindex="-1">
<th>
Any element where the `min` attribute is allowed: `meter` [^meter/min^] and `input` [^input/min^]
Any element where the `min` attribute is allowed
</th>
<td>
`aria-valuemin="..."`
</td>
<td>
<p>
Use the `min` attribute on any element that is
allowed the `min` attribute in HTML.
</p>
<p>
Authors MAY use the <a data-cite="wai-aria-1.2#aria-valuemax">`aria-valuemin`</a> attribute on any other element with a WAI-ARIA role which allows the `aria-valuemin` attribute.
</p>
<p>
Authors SHOULD NOT use `aria-valuemin` on any element which allows the `min` attribute. Use the `min` attribute instead.
</p>
Expand All @@ -3776,20 +3812,12 @@ <h3 id="docconformance-attr">
</tr>
<tr id="att-readonly" tabindex="-1">
<th>
Any element which allows the `readonly` attribute:
`input` [^input/readonly^], `textarea` [^textarea/readonly^] and <a>form-associated custom element</a> which allows [^form-associated custom elements/readonly^]
Any element which allows the `readonly` attribute
</th>
<td>
`aria-readonly="true"`
</td>
<td>
<p>
Use the `readonly` attribute on any element that is
allowed the `readonly` attribute in HTML.
</p>
<p>
Authors MAY use the <a data-cite="wai-aria-1.2#aria-readonly">`aria-readonly`</a> attribute on any element with a WAI-ARIA role which allows the attribute</a>.
</p>
<p>
Authors SHOULD NOT use the `aria-readonly="true"` on any element which also has a `readonly` attribute.
</p>
Expand All @@ -3798,28 +3826,6 @@ <h3 id="docconformance-attr">
</p>
</td>
</tr>
<tr id="att-contenteditable" tabindex="-1">
<th>
<p>
Element with [^html-global/contenteditable^]`=true`
or
element without `contenteditable` attribute whose closest
ancestor with a `contenteditable` attribute has
`contenteditable="true"`.
</p>
<p class="note">
This is equivalent to the <a data-cite=
"html/interaction.html#dom-iscontenteditable">`isContentEditable`</a>
IDL attribute.
</p>
</th>
<td>
`aria-readonly="false"`
</td>
<td>
Authors MUST NOT set `aria-readonly="true"` on an element that has `isContentEditable="true"`.
</td>
</tr>
<tr id="att-required" tabindex="-1">
<th>
Any element where the `required` attribute is allowed: `input` [^input/required^], `textarea` [^textarea/required^], and `select` [^select/required^]
Expand All @@ -3828,13 +3834,6 @@ <h3 id="docconformance-attr">
`aria-required="true"`
</td>
<td>
<p>
Use the `required` attribute on any element
that is allowed the `required` attribute in HTML.
</p>
<p>
Authors MAY use the <a data-cite="wai-aria-1.2#aria-required">`aria-required`</a> attribute on any element that is allowed the `required` attribute in HTML, or any element with a WAI-ARIA role which allows the `aria-required` attribute.
</p>
<p>
Authors SHOULD NOT use the `aria-required="true"` on any element which also has a `required` attribute.
</p>
Expand All @@ -3851,22 +3850,11 @@ <h3 id="docconformance-attr">
`aria-colspan="..."`
</td>
<td>
<p>
Use the `colspan` attribute on any element that is
allowed the `colspan` attribute in HTML.
</p>
<!--
Removing per issue #338
Revised rules to be re-added
<p>
Authors MAY use the `aria-colspan` attribute on any element that is allowed the `colspan` attribute in HTML, or any element with a WAI-ARIA role which allows the <a data-cite="wai-aria-1.2#aria-colspan">`aria-colspan` attribute</a>.
</p>
-->
<p>
Authors SHOULD NOT use the `aria-colspan` attribute on any element which also has a `colspan` attribute.
</p>
<p>
Authors MUST NOT use `aria-colspan` on any element which also has a `colspan` attribute, and the values of each attribute do not match.
Authors MUST NOT use `aria-colspan` on any element which also has a `colspan` attribute.
</p>
</td>
</tr>
Expand All @@ -3879,22 +3867,11 @@ <h3 id="docconformance-attr">
`aria-rowspan="..."`
</td>
<td>
<p>
Use the `rowspan` attribute on any element that is
allowed the `rowspan` attribute in HTML.
</p>
<!--
Removing per issue #338
Revised rules to be re-added
<p>
Authors MAY use the `aria-rowspan` attribute on any element that is allowed the `rowspan` attribute in HTML, or any element with a WAI-ARIA role which allows the <a data-cite="wai-aria-1.2#aria-rowspan">`aria-rowspan` attribute</a>.
</p>
-->
<p>
Authors SHOULD NOT use the `aria-rowspan` attribute on any element which also has a `rowspan` attribute.
</p>
<p>
Authors MUST NOT use `aria-rowspan` on any element which also has a `rowspan` attribute, and the values of each attribute do not match.
Authors MUST NOT use `aria-rowspan` on any element which also has a `rowspan` attribute.
</p>
</td>
</tr>
Expand Down
Loading