Skip to content

Image Button inconsistency from empty naming attribute #2293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
WilcoFiers opened this issue Feb 7, 2025 · 1 comment
Open

Image Button inconsistency from empty naming attribute #2293

WilcoFiers opened this issue Feb 7, 2025 · 1 comment
Labels
accessibility support Accessibility support testing and tracking

Comments

@WilcoFiers
Copy link
Member

Accessibility support

The input type="image" Accessible Name Computation algorithm uses the first defined attribute, even if the attribute has an empty value. In contrast, some user agents and assistive technologies ignore empty attributes.

ACT Rules

Test cases

Test case 1

Testing image button accessible name computation across different naming methods

TODO

Test instructions

TODO

External links

Test results

Please report test results in a comment below. Please use the following format:

## Test case 1

- Date: ...
- Operating system: ..., version ...
- Browser: ..., version ...
- Screen reader: ..., version ...
- Test result: Passed / Failed (if failed, how was it different from expected?)
@WilcoFiers WilcoFiers added the accessibility support Accessibility support testing and tracking label Feb 7, 2025
@shunguoy
Copy link
Collaborator

  1. based on the acc name calculation spec, an aria-label or aria-labbeledby attribute will be ignored in the acc name calculation if its value is undefined or empty string when trimmed of whitespace.
  2. The last resort (step 5) of an acc name for an input image button is from an implementation defined string, which is "Submit" for Chrome regardless of the existence of the image src, and "Submit Query" for FF only if the src image doesn't exist.
    The descriptions for each of the three Failed examples state that each button has an accessible name “Submit Query” (from the default internal implementation), however, they still fail without explanations of why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility support Accessibility support testing and tracking
Projects
None yet
Development

No branches or pull requests

2 participants