-
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
Order of "Submit Query" vs title attribute for <input type=image> #211
Comments
Hi @zcorpan, For the For the Does that clear it up? |
The HTML spec doesn't allow the
https://html.spec.whatwg.org/multipage/rendering.html#images-3 (This also doesn't say to use "Submit Query" in the rendering, but that may be a bug in HTML. It does say to use something for Anyway, it's still not clear to me if the difference is intentional, and if it is, why. |
Safari, Chrome and Edge/Chromium all print the title's text as fallback content if no IE11 / pre-Chromium Edge do not render any text for a broken image, but do get their accessible name from the title attribute. These results obviously being less relevant these days. Firefox is the only one that prints "submit query" when an image is broken, and in that case doesn't use the title attribute for the accessible name, keeping it as descriptive text. |
Woah. I didn't know those browsers did that. I'll raise an issue for HTML. Thanks. |
To round out the response, as i realize I didn't address your last question about
Beyond matching what most browsers are doing, in the event an image isn't broken With all this said, I'm now wondering if there might be a better way to word the algorithm so that this is more clear. Thanks for bringing this up |
I have ideas for how to make accname and html-aam clearer in general, but it would involve basically a complete rewrite. :-) |
cc @spectranaut |
Bug filed with Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1778726 As this is not an issue with this specification, and both webkit and chromium have implemented what's reflected here, it seems Firefox is what needs updating and possibly the HTML spec. Closing this issue, but if any movement is made elsewhere that would require updates here, then we can start up that conversation in a new issue / re-open this one. |
https://w3c.github.io/html-aam/#input-type-image-accessible-name-computation
This considers the
title
attribute before using the string "Submit Query".But for
<input type=submit>
https://w3c.github.io/html-aam/#input-type-button-input-type-submit-and-input-type-reset-accessible-name-computationthe order is reversed, so "submit" is used even if there is a
title
attribute.Should these be consistent?
The text was updated successfully, but these errors were encountered: