pombreda / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

Atom Entry cannot have more than one content #225

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Always

What is the expected output? What do you see instead?

Expected behaviour: As per RFC 4287 
(http://tools.ietf.org/html/rfc4287#section-4.1.2), the content field is at 
most one: "atom:entry elements MUST NOT contain more than one atom:content 
element."

Current behaviour: d.entries[0].content returns an array instead of a single 
content.
It is in accordance with feedparser's documentation: "Because Atom entries can 
have more than one content element, d.entries[0].content is a list of 
dictionaries"

What version of the product are you using? On what operating system?
N/A

Please provide any additional information below.

My expectations for the content field was to exist or not according to whether 
the downloaded document has a content element or not. Else, it may always exist 
but contains information or None as the case may be.

Original issue reported on code.google.com by malkaro...@gmail.com on 11 Aug 2010 at 8:11

GoogleCodeExporter commented 9 years ago
Please mark this as a duplicate of issue 126.

Original comment by kurtmckee on 4 Dec 2010 at 4:28

GoogleCodeExporter commented 9 years ago

Original comment by adewale on 4 Dec 2010 at 11:05