-
Notifications
You must be signed in to change notification settings - Fork 27
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
Conversation
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')
There was a problem hiding this 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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<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> |
There was a problem hiding this comment.
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.
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