-
Bug
-
Resolution: Won't Fix
-
P5
-
7
-
generic
-
generic
FULL PRODUCT VERSION :
JDK 1.4, 1.5, 1.6
ADDITIONAL OS VERSION INFORMATION :
- Solaris 10 SPARC
A DESCRIPTION OF THE PROBLEM :
When special HTML is being specially edited by user in JTextPane, the last paragraph can unexpectedly loss expected font attributes.
The special HTML code is:
[CODE]
<html>
<head></head>
<body>
<P><FONT SIZE="5" COLOR="#0000FF">Sample</FONT>
</body>
</html>
[/CODE]
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) Prepare an editable JTextPane and set the HTML code to it.
2) Press [End] and press [Return].
3) Type "aaa" - the symbols should be displayed in blue color.
4) Press [Return].
5) Press [Up Arrow].
6) Press [Down Arrow].
7) Type "mmm" - the symbols are unexpectedly of black color and have different font.
See "attrs_loss_in_HTML.png" for the desribing screenshot.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The "mmm" line should be of the same color and font as "aaa" one.
ACTUAL -
The "mmm" line is of different color and font.
REPRODUCIBILITY :
This bug can be reproduced always.
JDK 1.4, 1.5, 1.6
ADDITIONAL OS VERSION INFORMATION :
- Solaris 10 SPARC
A DESCRIPTION OF THE PROBLEM :
When special HTML is being specially edited by user in JTextPane, the last paragraph can unexpectedly loss expected font attributes.
The special HTML code is:
[CODE]
<html>
<head></head>
<body>
<P><FONT SIZE="5" COLOR="#0000FF">Sample</FONT>
</body>
</html>
[/CODE]
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) Prepare an editable JTextPane and set the HTML code to it.
2) Press [End] and press [Return].
3) Type "aaa" - the symbols should be displayed in blue color.
4) Press [Return].
5) Press [Up Arrow].
6) Press [Down Arrow].
7) Type "mmm" - the symbols are unexpectedly of black color and have different font.
See "attrs_loss_in_HTML.png" for the desribing screenshot.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The "mmm" line should be of the same color and font as "aaa" one.
ACTUAL -
The "mmm" line is of different color and font.
REPRODUCIBILITY :
This bug can be reproduced always.