Skip to content
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

Clarify accName for input type=image #497

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

scottaohara
Copy link
Member

@scottaohara scottaohara commented Jul 25, 2023

adds clarifying language for the alt and title steps.

updates the localized text string step to better match the updated input type=button/reset/submit, and note the fact that this element is considered a 'submit button' - linking to that portion of the HTML spec and noting that different browsers may provide a different default string (e.g., chrome does 'submit' while firefox does 'submit query')

Closes #414


Preview | Diff

adds clarifying language for the alt and title steps.  

updates the localized text string step to better match the updated input type=button/reset/submit, and note the fact that this element is considered a 'submit button' - linking to that portion of the HTML spec and noting that different browsers may provide a different default string (e.g., chrome does 'submit' while firefox does 'submit query')
@spectranaut spectranaut requested review from accdc, melanierichards, cookiecrook and MelSumner and removed request for melanierichards July 27, 2023 17:14
Copy link

@MelSumner MelSumner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion, non-blocker: I think "an empty string" reads a little better than "the empty string". 👍

@@ -6175,12 +6175,14 @@ <h4>`input type="image"` Accessible Name Computation</h4>
<li>
Otherwise use the associated `label` element(s) <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>(s) - if more than one `label` is associated; concatenate by DOM order, delimited by spaces.
</li>
<li>Otherwise use `alt` attribute.</li>
<!-- NOTE: use of valid attribute is invalid on input type=image, but it DOES contribute to the name if used -->
<li>Otherwise use `alt` attribute if present and its value is not the empty string.</li>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<li>Otherwise use `alt` attribute if present and its value is not the empty string.</li>
<li>Otherwise use `alt` attribute if present and its value is not an empty string.</li>

<!-- <li>Otherwise use `value` attribute.</li> -->
<li>Otherwise use `title` attribute.</li>
<li>Otherwise use `title` attribute if present and its value is not the empty string.</li>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<li>Otherwise use `title` attribute if present and its value is not the empty string.</li>
<li>Otherwise use `title` attribute if present and its value is not an empty string.</li>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don’t disagree, but I’m not going to break convention with how this concept is consistently referred to in specs.

@scottaohara scottaohara merged commit 055971f into gh-pages Jul 28, 2023
1 check passed
@scottaohara scottaohara deleted the type=image-accname-updates branch July 28, 2023 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Input type="image" - Accessible name computation
4 participants