Skip to content

Commit bf5c04b

Browse files
authored
Correction: conditionally revise allowed attributes and roles on summary element (#435)
* revise allowed attributes on summary element Normative follow-on from #434 The spec was updated to note that the summary element doesnt' always map to the button element. The allowed attributes indicated that all attributes that were applicable to the button role were allowed. However, in practice this doesn't make sense and could break or be in contradiction to the implicit semantics. The allowed aria-* attributes for the button role include * aria-disabled * aria-haspopup * aria-expanded * aria-pressed Of those four, aria-expanded and pressed are the ones that would pose problems by conflicting or not making any sense with the implicit expanded/collapsed states provided by the element (who gets the state per the parent details having an open attribute or not). * further clarifications for summary element allowances this addition to the PR takes into account that only a summary element that serves as the 'summary for its parent details' needs to adhere to these rules. otherwise, a summary element that doesn't meet the criteria of the HTML spec is essentially just a generic element, so any roles/attributes can be used on that. * updated changelog
1 parent f7ed5ff commit bf5c04b

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

index.html

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@
6363
the following substantive additions and/or corrections have been proposed:
6464
</p>
6565
<ul>
66+
<li>
67+
<a href="https://github.com/w3c/html-aria/pull/435">31 May 2023 - Correction:</a>
68+
Conditionally revise allowed `aria-*` attributes and roles on <a href="#el-summary">`summary`</a> element.
69+
</li>
6670
<li>
6771
<a href="https://github.com/w3c/html-aria/pull/410">31 May 2023 - Correction:</a>
6872
Update <a href="#el-li">`li`</a> element role allowances in context to the element's ancestral relationship, or lack of,
@@ -2939,18 +2943,26 @@ <h2 id="docconformance">
29392943
<a>No corresponding role</a>
29402944
</p>
29412945
<div class="note">
2942-
Many, but not all, user agents expose the `summary` element with an implicit ARIA <code>role=<a href="#index-aria-button">button</a></code>
2943-
role.
2946+
Many, but not all, user agents expose the `summary` element with an implicit ARIA
2947+
<code>role=<a href="#index-aria-button">button</a></code>.
29442948
</div>
29452949
</td>
29462950
<td>
2947-
<p>
2948-
<a><strong class="nosupport">No `role`</strong></a>
2949-
</p>
2950-
<p>
2951-
<a data-cite="wai-aria-1.2#global_states">Global `aria-*` attributes</a>
2952-
and any `aria-*` attributes applicable to the `button` role.
2953-
</p>
2951+
<div class="proposed correction">
2952+
<p>
2953+
<a><strong class="nosupport">No `role`</strong></a> if the `summary` element is a
2954+
<a data-cite="html/interactive-elements.html#summary-for-its-parent-details">summary for its parent details</a>.
2955+
</p>
2956+
<p>
2957+
<a data-cite="wai-aria-1.2#global_states">Global `aria-*` attributes</a>,
2958+
`aria-disabled`, and `aria-haspopup` attributes.
2959+
</p>
2960+
<p>
2961+
Otherwise, authors MAY specifiy <a><strong>Any `role`</strong></a>, and any
2962+
<a data-cite="wai-aria-1.2#global_states">global `aria-*` attributes</a>
2963+
and any `aria-*` attributes applicable to the allowed roles.
2964+
</p>
2965+
</div>
29542966
</td>
29552967
</tr>
29562968
<tr>

0 commit comments

Comments
 (0)