[ https://issues.apache.org/jira/browse/ABDERA-192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620881#action_12620881 ]
David Calavera commented on ABDERA-192: --------------------------------------- Please, can you provide a test that explodes this bug? how do you create the entry?, this test works fine: @Test public void testXhtml() throws Exception { Abdera abdera = new Abdera(); Entry entry = abdera.newEntry(); entry.setContentAsXhtml("<p>Test</p>"); assertNotNull(entry.getContent()); assertEquals(entry.getContentType(), Content.Type.XHTML); Element el = entry.getContentElement().getValueElement(); assertTrue(el instanceof Div); ... > Entry.getContentType() is returning wrong content type > ------------------------------------------------------ > > Key: ABDERA-192 > URL: https://issues.apache.org/jira/browse/ABDERA-192 > Project: Abdera > Issue Type: Bug > Affects Versions: 0.5.0 > Environment: Win XP, Eclipse 3.4 Ganymede, Abdera 0.5.0-SNAPSHOT > Reporter: Chiradip Mandal > Priority: Minor > > Even when the content in the entry is in XHTML format Entry.getContentType() > is returning type HTML. > entry.getContent() is returning this <div > xmlns='http://www.w3.org/1999/xhtml'>entryContent</div> > while entry.getContentType() is returning HTML -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.