-
Bug
-
Resolution: Fixed
-
P2
-
17.0.13, 21.0.5, 23, 24
-
b25
-
b09
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8337931 | 23.0.1 | Alexey Ivanov | P2 | Resolved | Fixed | b06 |
JDK-8337401 | 23 | Alexey Ivanov | P2 | Resolved | Fixed | b35 |
JDK-8337477 | 21.0.6-oracle | Alexey Ivanov | P2 | Resolved | Fixed | b01 |
JDK-8337594 | 21.0.5-oracle | Alexey Ivanov | P2 | Closed | Fixed | b05 |
JDK-8337731 | 21.0.5 | Matthias Baesken | P2 | Resolved | Fixed | b02 |
JDK-8337479 | 17.0.14-oracle | Alexey Ivanov | P2 | Resolved | Fixed | b01 |
JDK-8337596 | 17.0.13-oracle | Alexey Ivanov | P2 | Closed | Fixed | b05 |
JDK-8337748 | 17.0.13 | Matthias Baesken | P2 | Resolved | Fixed | b02 |
OpenJDK Runtime Environment (build 23-ea+30-2323)
A DESCRIPTION OF THE PROBLEM :
In Java 22 it is possible to set "text-decoration: none" to disable link underline, e.g.:
<a href="http://example.com" style="text-decoration: none"...
In Java 23-EA it no longer works as expected.
REGRESSION : Last worked in version 22.0.1
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Link without underline decoration
ACTUAL -
Link with underline decoration ("text-decoration: none" seems ignored)
---------- BEGIN SOURCE ----------
import javax.swing.*;
public class Test extends JFrame {
Test() {
JEditorPane ep = new JEditorPane();
String text = """
<style>
body { font-size: x-large; margin: 50px }
a { text-decoration: none; color: green; }
a.test { text-decoration: none; color: red; }
</style>
<a href="http://example.com">Link 1</a>
<br><br>
<a class=test href="http://example.com">Link 2</a>
<br><br>
<a href="http://example.com" style="text-decoration: none; color: orange">Link 3</a>
""";
ep.setContentType("text/html");
ep.setText(text);
add(ep);
pack();
setDefaultCloseOperation(EXIT_ON_CLOSE);
setVisible(true);
}
public static void main(String[] args) {
SwingUtilities.invokeLater(Test::new);
}
}
---------- END SOURCE ----------
FREQUENCY : always
- backported by
-
JDK-8337401 "text-decoration: none" does not work with "A" HTML tags
- Resolved
-
JDK-8337477 "text-decoration: none" does not work with "A" HTML tags
- Resolved
-
JDK-8337479 "text-decoration: none" does not work with "A" HTML tags
- Resolved
-
JDK-8337731 "text-decoration: none" does not work with "A" HTML tags
- Resolved
-
JDK-8337748 "text-decoration: none" does not work with "A" HTML tags
- Resolved
-
JDK-8337931 "text-decoration: none" does not work with "A" HTML tags
- Resolved
-
JDK-8337594 "text-decoration: none" does not work with "A" HTML tags
- Closed
-
JDK-8337596 "text-decoration: none" does not work with "A" HTML tags
- Closed
- relates to
-
JDK-8326734 text-decoration applied to <span> lost when mixed with <u> or <s>
- Resolved
- links to
-
Commit(jdk23) openjdk/jdk/6a6591e8
-
Commit(master) openjdk/jdk17u-dev/7f8fdbd0
-
Commit(master) openjdk/jdk21u-dev/7c2666d9
-
Commit(master) openjdk/jdk/374fca0f
-
Review(jdk23) openjdk/jdk/20354
-
Review(master) openjdk/jdk17u-dev/2765
-
Review(master) openjdk/jdk21u-dev/888
-
Review(master) openjdk/jdk/20313