From 79e1d94851258bb8c7f4cabe53d760fa57c3587d Mon Sep 17 00:00:00 2001 From: Wilco Fiers Date: Fri, 7 Feb 2025 14:09:18 +0100 Subject: [PATCH 1/3] button name move assumption to the correct section --- _rules/button-non-empty-accessible-name-97a4e1.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_rules/button-non-empty-accessible-name-97a4e1.md b/_rules/button-non-empty-accessible-name-97a4e1.md index f9b0672ecc..cff2d16105 100755 --- a/_rules/button-non-empty-accessible-name-97a4e1.md +++ b/_rules/button-non-empty-accessible-name-97a4e1.md @@ -39,12 +39,12 @@ This rule considers an exception for "image buttons" (i.e., `input` elements wit - The rule assumes that all buttons are [user interface components as defined by WCAG 2](https://www.w3.org/TR/WCAG22/#dfn-user-interface-components). +- Some elements have a role of `button` and a default accessible name defined by the [HTML Accessibility API Mapping][html aam input button], for example `input` elements whose `type` [attribute value][] is either `submit` or `reset`. This rule considers that these default names can be descriptive and therefore does not fail them. + ### Accessibility Support - Implementation of [Presentational Roles Conflict Resolution][] varies from one browser or assistive technology to another. Depending on this, some elements can have a [semantic role][] of `button` and fail this rule with some technology but users of other technologies would not experience any accessibility issue. -- Some elements have a role of `button` and a default accessible name defined by the [HTML Accessibility API Mapping][html aam input button], for example `input` elements whose `type` [attribute value][] is either `submit` or `reset`. This rule considers that these default names can be descriptive and therefore does not fail them. - ### Related rules - [Image button has non-empty accessible name](https://www.w3.org/WAI/standards-guidelines/act/rules/59796f/) From 360cd178af2e18fff9a17421cb824da3120a8d7d Mon Sep 17 00:00:00 2001 From: Wilco Fiers Date: Fri, 2 May 2025 12:08:55 +0200 Subject: [PATCH 2/3] Update button-non-empty-accessible-name-97a4e1.md --- _rules/button-non-empty-accessible-name-97a4e1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_rules/button-non-empty-accessible-name-97a4e1.md b/_rules/button-non-empty-accessible-name-97a4e1.md index cff2d16105..a67a57c848 100755 --- a/_rules/button-non-empty-accessible-name-97a4e1.md +++ b/_rules/button-non-empty-accessible-name-97a4e1.md @@ -226,7 +226,7 @@ This `button` element has an [explicit role][] of `none`; it is not [focusable][ [attribute value]: #attribute-value 'Definition of Attribute Value' [explicit role]: #explicit-role 'Definition of explicit role' [focusable]: #focusable 'Definition of focusable' -[html aam input button]: https://www.w3.org/TR/html-aam-1.0/#input-type-button-input-type-submit-and-input-type-reset 'HTML Accessibility API Mapping, reset and submit buttons' +[html aam input button]: https://www.w3.org/TR/html-aam-1.0/#el-input-button 'HTML Accessibility API Mapping, input buttons' [included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of included in the accessibility tree' [presentational roles conflict resolution]: https://www.w3.org/TR/wai-aria-1.2/#conflict_resolution_presentation_none 'Presentational Roles Conflict Resolution' [semantic role]: #semantic-role 'Definition of Semantic Role' From 8a678cc1ab4a2cd06c69dcd09c836f8c1a34243b Mon Sep 17 00:00:00 2001 From: Wilco Fiers Date: Fri, 2 May 2025 12:10:55 +0200 Subject: [PATCH 3/3] Update button-non-empty-accessible-name-97a4e1.md --- _rules/button-non-empty-accessible-name-97a4e1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_rules/button-non-empty-accessible-name-97a4e1.md b/_rules/button-non-empty-accessible-name-97a4e1.md index a67a57c848..a495ff01c5 100755 --- a/_rules/button-non-empty-accessible-name-97a4e1.md +++ b/_rules/button-non-empty-accessible-name-97a4e1.md @@ -226,7 +226,7 @@ This `button` element has an [explicit role][] of `none`; it is not [focusable][ [attribute value]: #attribute-value 'Definition of Attribute Value' [explicit role]: #explicit-role 'Definition of explicit role' [focusable]: #focusable 'Definition of focusable' -[html aam input button]: https://www.w3.org/TR/html-aam-1.0/#el-input-button 'HTML Accessibility API Mapping, input buttons' +[html aam input button]: https://www.w3.org/TR/html-aam-1.0/#input-type-button-input-type-submit-and-input-type-reset-accessible-name-computation 'HTML Accessibility API Mapping, input button, input, and reset accessible name' [included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of included in the accessibility tree' [presentational roles conflict resolution]: https://www.w3.org/TR/wai-aria-1.2/#conflict_resolution_presentation_none 'Presentational Roles Conflict Resolution' [semantic role]: #semantic-role 'Definition of Semantic Role'