feedbin / support

83 stars 11 forks source link

Feedbin appears to grab incorrect <title> element #559

Open frippz opened 7 years ago

frippz commented 7 years ago

Subscribed to the following feed: http://www.hemnet.se/mitt_hemnet/sparade_sokningar/11466596.xml (sample code in Gist: https://gist.github.com/frippz/d5c37dba581d9e7946454f364a2a02db). Noticed that Feedbin appears to grab the first <title> present in the XML (that happens to be a child of the <image> node), not the proper node that is a direct descendant of <channel>.

I've verified that the feed is valid XML. Should the order of the nodes make any difference?

Mange commented 7 years ago

From the <image> section of RSS2 standard:

<image> sub-element of <channel>

<image> is an optional sub-element of <channel>, which contains three required and three optional sub-elements.

[...]

<title> describes the image, it's used in the ALT attribute of the HTML <img> tag when the channel is rendered in HTML.

So the image.title tag should just be the alt-text of the image.