Skip to content

Commit a90aa06

Browse files
authored
Addition: popovertarget guidance
Closes #513 the `aria-expanded` state is implicit when using the `popovertarget` attribute - and authors are not to use the ARIA attribute with this native HTML attribute.
1 parent 2c9c9a2 commit a90aa06

File tree

1 file changed

+22
-35
lines changed

1 file changed

+22
-35
lines changed

index.html

+22-35
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464
the following substantive additions and/or corrections have been proposed:
6565
</p>
6666
<ul>
67+
<!--<li>
68+
<a href="https://github.com/w3c/html-aria/pull/...">15 April 2024 - Addition:</a>
69+
Add author rules for the <a href="#att-popovertarget">`popovertarget`</a> attribute.
70+
</li>-->
6771
<li>
6872
<a href="https://github.com/w3c/html-aria/pull/489">4 October 2023 - Addition:</a>
6973
Update the button element and input type=button,image,reset,submit elements to allow the `separator` role.
@@ -3618,10 +3622,6 @@ <h3 id="docconformance-attr">
36183622
</td>
36193623
<td>
36203624
<div class="correction">
3621-
<p>
3622-
Use the `checked` attribute on any element that is allowed the `checked` attribute in HTML.
3623-
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.
3624-
</p>
36253625
<p>
36263626
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
36273627
indeterminate checked value of the element can be in opposition to the current value of the `aria-checked` attribute.
@@ -3643,9 +3643,6 @@ <h3 id="docconformance-attr">
36433643
`aria-disabled="true"`
36443644
</td>
36453645
<td>
3646-
<p>
3647-
Use the `disabled` attribute on any element that is allowed the `disabled` attribute in HTML.
3648-
</p>
36493646
<p>
36503647
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>.
36513648
</p>
@@ -3689,10 +3686,6 @@ <h3 id="docconformance-attr">
36893686
`aria-placeholder="..."`
36903687
</td>
36913688
<td>
3692-
<p>
3693-
Use the `placeholder` attribute on any element that is allowed the
3694-
`placeholder` attribute in HTML.
3695-
</p>
36963689
<p>
36973690
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.
36983691
</p>
@@ -3701,6 +3694,24 @@ <h3 id="docconformance-attr">
37013694
</p>
37023695
</td>
37033696
</tr>
3697+
<tr id="att-popovertarget" tabindex="-1">
3698+
<th>
3699+
Any element where the <a data-cite="html/popover.html#the-popover-target-attributes">`popovertarget`</a> attribute is allowed:
3700+
[^button^],
3701+
<a data-cite="html/input.html#button-state-(type=button)">`input type=button`</a>,
3702+
<a data-cite="html/input.html#button-state-(type=image)">`input type=image`</a>,
3703+
<a data-cite="html/input.html#reset-button-state-(type=reset)">`input type=reset`</a>
3704+
<a data-cite="html/input.html#submit-button-state-(type=submit)">`input type=submit`</a>
3705+
</th>
3706+
<td>
3707+
`aria-expanded="..."`
3708+
</td>
3709+
<td>
3710+
<p class="addition">
3711+
Authors MUST NOT use the `aria-expanded` attribute on any element which also has a `popovertarget` attribute.
3712+
</p>
3713+
</td>
3714+
</tr>
37043715
<tr id="att-max" tabindex="-1">
37053716
<th>
37063717
Any element where the `max` attribute is allowed: `meter` [^meter/max^], `progress` [^progress/max^], and `input` [^input/max^]
@@ -3709,10 +3720,6 @@ <h3 id="docconformance-attr">
37093720
`aria-valuemax="..."`
37103721
</td>
37113722
<td>
3712-
<p>
3713-
Use the `max` attribute on any element that is
3714-
allowed the `max` attribute in HTML.
3715-
</p>
37163723
<p>
37173724
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.
37183725
</p>
@@ -3732,10 +3739,6 @@ <h3 id="docconformance-attr">
37323739
`aria-valuemin="..."`
37333740
</td>
37343741
<td>
3735-
<p>
3736-
Use the `min` attribute on any element that is
3737-
allowed the `min` attribute in HTML.
3738-
</p>
37393742
<p>
37403743
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.
37413744
</p>
@@ -3756,10 +3759,6 @@ <h3 id="docconformance-attr">
37563759
`aria-readonly="true"`
37573760
</td>
37583761
<td>
3759-
<p>
3760-
Use the `readonly` attribute on any element that is
3761-
allowed the `readonly` attribute in HTML.
3762-
</p>
37633762
<p>
37643763
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>.
37653764
</p>
@@ -3801,10 +3800,6 @@ <h3 id="docconformance-attr">
38013800
`aria-required="true"`
38023801
</td>
38033802
<td>
3804-
<p>
3805-
Use the `required` attribute on any element
3806-
that is allowed the `required` attribute in HTML.
3807-
</p>
38083803
<p>
38093804
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.
38103805
</p>
@@ -3824,10 +3819,6 @@ <h3 id="docconformance-attr">
38243819
`aria-colspan="..."`
38253820
</td>
38263821
<td>
3827-
<p>
3828-
Use the `colspan` attribute on any element that is
3829-
allowed the `colspan` attribute in HTML.
3830-
</p>
38313822
<!--
38323823
Removing per issue #338
38333824
Revised rules to be re-added
@@ -3852,10 +3843,6 @@ <h3 id="docconformance-attr">
38523843
`aria-rowspan="..."`
38533844
</td>
38543845
<td>
3855-
<p>
3856-
Use the `rowspan` attribute on any element that is
3857-
allowed the `rowspan` attribute in HTML.
3858-
</p>
38593846
<!--
38603847
Removing per issue #338
38613848
Revised rules to be re-added

0 commit comments

Comments
 (0)