-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Rendering of <input type=image> that does not represent an image #9677
Comments
@scottaohara 👆🏼for reference the HTML acc api acc name algorithm for input type image https://www.w3.org/TR/html-aam-1.0/#input-type-image-accessible-name-computation |
as that particular bit is explicitly about "If the element is an input element that does not represent an image", the use of "alternative text" is unnecessarily confusing. I think it should say "accessible name" (which then covers the other things mentioned, like 'title')
|
In https://html.spec.whatwg.org/multipage/rendering.html#the-input-element-as-a-button it defines this more specifically as
if not accessible name, then perhaps https://html.spec.whatwg.org/multipage/rendering.html#images-3 should just use that wording as well, or even just cross-link to https://html.spec.whatwg.org/multipage/rendering.html#the-input-element-as-a-button ? |
I don't think it should be accessible name. HTML shouldn't depend on ARIA in that way. But it should be more clear, agreed. The questions here are:
|
|
https://html.spec.whatwg.org/multipage/rendering.html#images-3 is not exactly clear on what "alternative text" is. Presumably it just means the
alt
attribute as theinput
element section doesn't really detail anything else.However in practice user agents at least fallback to the
value
attribute when thealt
attribute is not there and Chromium and WebKit also seem to include thetitle
attribute in that chain (preferring that tovalue
).You can use this example and add/remove attributes to get a feeling of what happens in different user agents:
Also note how when you use the empty string Chromium and Gecko render nothing, but WebKit falls back to "Submit".
cc @whatwg/a11y
The text was updated successfully, but these errors were encountered: