You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Chiradip Mandal (JIRA)" <ji...@apache.org> on 2008/08/01 23:05:31 UTC
[jira] Created: (ABDERA-192) Entry.getContentType() is returning
wrong content type
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.
[jira] Commented: (ABDERA-192) Entry.getContentType() is returning
wrong content type
Posted by "David Calavera (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Closed: (ABDERA-192) Entry.getContentType() is returning
wrong content type
Posted by "David Calavera (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Calavera closed ABDERA-192.
---------------------------------
Resolution: Cannot Reproduce
> 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.