The following test fails with JRE 1.6.0_20
public void testSetGetTextWithList() throws Exception {
final JEditorPane editorPane = new JEditorPane();
editorPane.setContentType("text/html");
editorPane.setText("<ul><li></li></ul>");
assertTrue(editorPane.getText().contains("<ul"));
}
Of course, there is a visual difference between an empty list and a non-existing list, so I expect the editor not to discard the empty list. Anybody with an easy solution for this problem?