From 0345d834839cfaf69fc1bba6db8a859e04ef312d Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Wed, 31 May 2023 10:34:09 -0400 Subject: [PATCH] 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 --- html-aria/index.html | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/html-aria/index.html b/html-aria/index.html index 701fd7219..0c2e63645 100644 --- a/html-aria/index.html +++ b/html-aria/index.html @@ -63,6 +63,10 @@ the following substantive additions and/or corrections have been proposed: