Text child of "author" element not parsed #32

Closed
michaelrhanson opened this Issue Oct 25, 2012 · 1 comment

Comments

2 participants
@michaelrhanson

When I load a feed that contains bare text content in an author subelement of an item, the author property of the resulting article is null.

I believe this is because, at main.js#858, only name, email, and uri child elements of the author element are loaded. This is correct for Atom / RFC4287 feeds.

But in RSS 2.0, a bare text child of the author element is specified. I think the correct approach is going to be to accept the text child of author, in the case where no other subelements are found.

This construct was seen in the wild at http://www.tnr.com/rss/articles

@danmactough

This comment has been minimized.

Show comment
Hide comment
@danmactough

danmactough Oct 26, 2012

Owner

Oh, sure. You're absolutely right. Thanks for the bug report.

Owner

danmactough commented Oct 26, 2012

Oh, sure. You're absolutely right. Thanks for the bug report.

danmactough added a commit that referenced this issue Oct 26, 2012

Fix issue #32 - parse RSS item:author. Enhance RSS authorish elements…
… with parsed properties via addressparser.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment