JDK-8314731 : Add support for the alt attribute in the image type input HTML tag
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 9,11,17,20,21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2023-08-17
  • Updated: 2025-09-23
  • Resolved: 2025-09-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 b16Fixed
Description
ADDITIONAL SYSTEM INFORMATION :
Linux, Windows, ...

A DESCRIPTION OF THE PROBLEM :
According HTML 4.01 specifications :
" ... For accessibility reasons, authors should provide alternate text for the image via the alt attribute. ..."

This feature in not implemented in FormView.java.
PR 15319 : https://github.com/openjdk/jdk/pull/15319 fixes this issue.



Comments
I've re-assigned the bug to myself on behalf of the contributor: I reviewed the code, ran client tests and sponsored integrating the changeset.
16-09-2025

Changeset: 729f4f9b Branch: master Author: Guy Abossolo Foh - ScientificWare <info@scientificware.com> Committer: Alexey Ivanov <aivanov@openjdk.org> Date: 2025-09-15 19:22:47 +0000 URL: https://git.openjdk.org/jdk/commit/729f4f9b16ca0ede57976f10abbafedee1c6e017
15-09-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/15319 Date: 2023-08-17 00:16:07 +0000
09-07-2024

Currently, it seems like FormView doesn't utilize the alt attribute, and the linked PR is currently active and tries to address this. Triaging
22-08-2023

Moving to JDK project for evaluation.
22-08-2023