Re: Absolute URLs are required in RSS 2 descriptions or not?
"d" <[email protected]>
| Newsgroups | gmane.network.syndication.rss.support |
|---|---|
| Message-ID | <[email protected]> |
--- In [email protected], James Housley <jim@...> wrote: > > On Jun 25, 2007, at 9:44 PM, d wrote: > > > > > The online feed validators are claiming that relative urls are not > > allowed in html inside of the description element in RSS 2. And I've > > read many people saying that online. > > > > Is that a myth? Where in the spec does it say that? > > > > http://cyber.law.harvard.edu/rss/rss.html > > > > It talks about it for <link> and <url> elements being absolute but not > > <description>. > > > > Lets be logical about this. What is going to be used for the domain > and path for those URLs? When the feed is picked up directly from > your website feed reader will probably try the same domain as the > feed was fetched from. But, if items are picked up by aggregators > and show up in other feeds what then? Relative URLs might work most > of the time, but fully qualified URLs will always work. > > Jim In fairness, my post was only asking about what's officially written in the specification. But to your question, my answer is yes, the rss reader should try the same domain it got the RSS from. If the RSS is agregated, then I would suggest getting the domain from one of the <link> tags, which are absolute (the spec does say that <link> and <url> are absolute). Why not from the link element? Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/rss-public/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/rss-public/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/