RFR: JDK-8314731 : Add support for the alt attribute in the image type input HTML tag [v2]
Alexey Ivanov
aivanov at openjdk.org
Mon Oct 23 12:27:43 UTC 2023
On Fri, 29 Sep 2023 12:12:23 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
> You should probably pass `altAtt` as the `description` parameter, yet I'm unsure if it's ever used in this context.
As I say, I'm unsure if it's used… The description could be exposed to Accessibility API. By default, `ImageIcon` uses the URL as the description if it isn't provided:
https://github.com/openjdk/jdk/blob/99de9bb83ff70fe81c89751516a86a94c8f552be/src/java.desktop/share/classes/javax/swing/ImageIcon.java#L231-L233
Now that you handle the `alt` attribute, you can pass the description if it's provided.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15319#discussion_r1368559705
More information about the client-libs-dev
mailing list