Skip to content

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 MelSumner, accdc, cookiecrook and melanierichards 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". 👍

</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>

<!-- NOTE: use of value attribute is invalid on input type=image, but it DOES contribute to the name if used -->
<!-- <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
@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

5 participants