From bc91a36b49fa9b7b3332dcf9a109ab9a951ba346 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 28 Nov 2024 13:27:35 +0100 Subject: [PATCH] Set up for next week's review and publication This reverts commit a75743a87a822c0bc0147d16dde921ea8ed3e118. --- content/rules/59796f/proposed.md | 36 +++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/content/rules/59796f/proposed.md b/content/rules/59796f/proposed.md index ae95b34c..e86a7eac 100644 --- a/content/rules/59796f/proposed.md +++ b/content/rules/59796f/proposed.md @@ -9,7 +9,7 @@ github: feedbackmail: public-wcag-act@w3.org footer: |

Rule Identifier: 59796f

-

Date: Updated 21 November 2024

+

Date: Updated 25 November 2024

Authors: Anne Thyme Nørregaard. Contributors: Participants of the ACT Rules Community Group (CG).

This rule was written in the ACT Rules Community Group. It is written as part of the EU-funded WAI-Tools Project. Implementations are part of the EU funded WAI-CooP Project. It will be reviewed by the Accessibility Guidelines Working Group (AG WG).

proposed: true @@ -20,7 +20,7 @@ rule_meta: original_file: image-button-non-empty-accessible-name-59796f.md description: | This rule checks that each image button element has a non-empty accessible name. - last_modified: 21 November 2024 + last_modified: 25 November 2024 scs_tested: - handle: Non-text Content num: 1.1.1 @@ -40,7 +40,7 @@ Each target element has an [accessible name][] that is neither empty (`""`), nor ## Background -Contrarily to `img` elements, an empty `alt` attribute (`alt=""`) does not make an image button decorative; image buttons have a button role and are therefore exposed as interactive elements. Consequently, an empty `alt` attribute does not provide a "usable string" for image buttons and the computation defaults to other means of providing a name, as defined in [input type="image" Accessible Name Computation algorithm](https://www.w3.org/TR/html-aam/#input-type-image-accessible-name-computation). +Unlike for `img` elements, an empty `alt` attribute (`alt=""`) does not make an image button decorative; image buttons have a button role and are therefore exposed as interactive elements. An empty `alt` attribute therefore does not provide a "usable string" for image buttons and the computation defaults to other means of providing a name, as defined in [input type="image" Accessible Name Computation algorithm](https://www.w3.org/TR/html-aam/#input-type-image-accessible-name-computation). ### Assumptions @@ -49,7 +49,7 @@ Contrarily to `img` elements, an empty `alt` attribute (`alt=""`) does not make ### Accessibility Support -The [input type="image" Accessible Name Computation algorithm](https://www.w3.org/TR/html-aam/#input-type-image-accessible-name-computation) uses the first non-empty name, but some user agents and assistive technologies combinations stop at the first existing one, even if empty. +The [input type="image" Accessible Name Computation algorithm](https://www.w3.org/TR/html-aam/#input-type-image-accessible-name-computation) uses the first defined attribute, even if the attribute has an empty value. In contrast, some user agents and assistive technologies ignore empty attributes. ### Related rules @@ -267,6 +267,23 @@ For more details, see [examples of accessible name][]. **Note:** As per the [accessible name and description computation][], accessible names are [flat string](https://www.w3.org/TR/accname-1.1/#terminology) trimmed of leading and trailing whitespace. Notably, it is not possible for a non-empty accessible name to be composed only of whitespace since these must be trimmed. +### Attribute value {#attribute-value} + +The attribute value of a content attribute set on an HTML element is the value that the attribute gets after being parsed and computed according to specifications. It may differ from the value that is actually written in the HTML code due to trimming whitespace or non-digits characters, default values, or case-insensitivity. + +Some notable case of attribute value, among others: + +- For [enumerated attributes][], the attribute value is either the state of the attribute, or the keyword that maps to it; even for the default states. Thus `` has an attribute value of either `Image Button` (the state) or `image` (the keyword mapping to it), both formulations having the same meaning; similarly, "an input element with a `type` _attribute value_ of `Text`" can be either ``, `` (missing value default), or `` (invalid value default). +- For [boolean attributes][], the attribute value is `true` when the attribute is present and `false` otherwise. Thus `