-
Bug
-
Resolution: Fixed
-
P3
-
7u65
-
b38
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085139 | emb-9 | Dmitry Markov | P3 | Resolved | Fixed | team |
JDK-8063914 | 8u45 | Dmitry Markov | P3 | Resolved | Fixed | b01 |
JDK-8069998 | emb-8u47 | Dmitry Markov | P3 | Resolved | Fixed | team |
JDK-8072309 | 7u85 | Dmitry Markov | P3 | Resolved | Fixed | b01 |
There is an inconsistency in HTMLDocument.
code1 = {JEditorPane.setText("<p id='ab'>ab</p>c");} and
code2 = {JEditorPane.setText("<p id='ab'>ab</p>"); HTMLDocument.insertAfterEnd(doc.getElement("ab"), "c");} produce the same HTML code, but not the same document structure. This results in different rendering.
Also, with code2, when clicking behind the end of a line the caret is set one character earlier than expected. The content that is inserted using insertAfterEnd() doesn't make a difference. This behaviour is reproducible with text, paragraphs and images. Please find source code and steps to reproduce in the comments.
code1 = {JEditorPane.setText("<p id='ab'>ab</p>c");} and
code2 = {JEditorPane.setText("<p id='ab'>ab</p>"); HTMLDocument.insertAfterEnd(doc.getElement("ab"), "c");} produce the same HTML code, but not the same document structure. This results in different rendering.
Also, with code2, when clicking behind the end of a line the caret is set one character earlier than expected. The content that is inserted using insertAfterEnd() doesn't make a difference. This behaviour is reproducible with text, paragraphs and images. Please find source code and steps to reproduce in the comments.
- backported by
-
JDK-8063914 Rendering / caret errors with HTMLDocument
- Resolved
-
JDK-8069998 Rendering / caret errors with HTMLDocument
- Resolved
-
JDK-8072309 Rendering / caret errors with HTMLDocument
- Resolved
-
JDK-8085139 Rendering / caret errors with HTMLDocument
- Resolved