The purpose of this issue is to Add support for the alt attribute in the image type input HTML
This is referenced in Java Bug Database as
This is tracked in JBS as
According HTML 3.2 specification
alt is not an attribute of the input element.
According HTML 4.01 specifications :
... For accessibility reasons, authors should provide alternate text for the image via the alt attribute. ...
This feature is not implemented in FormView.java.

Left before the patch and right after the patch.
Related Pull Request :
Related Issue Report :
⚠️ This also affects the HTML 32 DTD
Click here to see the code
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.SwingUtilities;
import javax.swing.text.Document;
import javax.swing.text.html.HTMLEditorKit;
import javax.swing.text.html.StyleSheet;
public class HTMLAddsSupportAltInputTag {
public static void main(String[] args) {
new HTMLAddsSupportAltInputTag();
}
public HTMLAddsSupportAltInputTag() {
SwingUtilities.invokeLater(new Runnable(){
public void run(){
JEditorPane jEditorPane = new JEditorPane();
jEditorPane.setEditable(false);
JScrollPane scrollPane = new JScrollPane(jEditorPane);
HTMLEditorKit kit = new HTMLEditorKit();
jEditorPane.setEditorKit(kit);
StyleSheet styleSheet = kit.getStyleSheet();
styleSheet.addRule("""
body {
color: #000;
font-family:times;
margin: 4px;
}
""");
String htmlString = """
<html>
<body>
<input type=image name=point src="file:oracle_logo_50x50.jpg" alt="Logo Oracle JPG">
<p>
<input type=image name=point src="file:none_oracle_logo_50x50.jpg" alt="Logo Oracle JPG">
<p>
<input type=image name=point src="files:none_oracle_logo_50x50.jpg">
</body>
</html>
""";
Document doc = kit.createDefaultDocument();
jEditorPane.setDocument(doc);
jEditorPane.setText(htmlString);
JFrame jf = new JFrame("CSS named colors Test");
jf.getContentPane().add(scrollPane, BorderLayout.CENTER);
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jf.setSize(new Dimension(400,200));
jf.setLocationRelativeTo(null);
jf.setVisible(true);
}
});
}
}
The image to use with de code above, save it with the name : oracle_logo_50x50.jpg

Status
The purpose of this issue is to Add support for the
altattribute in the image type input HTMLThis is referenced in Java Bug Database as
This is tracked in JBS as
According HTML 3.2 specification
altis not an attribute of theinputelement.According HTML 4.01 specifications :
This feature is not implemented in
FormView.java.Left before the patch and right after the patch.
Related Pull Request :
Related Issue Report :
This also affects the HTML 32 DTDClick here to see the code
The image to use with de code above, save it with the name :

oracle_logo_50x50.jpgStatus
This Enhancement Request is not yet accepted so it's internaly referenced in Java Bug Database as : JI-9075849Click here to see details
Referenced in Java Bug Database.