ATOM feed example is bogus
|Reported by:||Owned by:||John DeRosa|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The example code at the end of the syndication_feeds documentation page has a couple of problems that I discovered while trying to get the feed validator to accept my ATOM 1.0 feed:
The encoding "utf8" is invalid; it should be "utf-8".
An author name must be specified, either for the feed itself or for each entry - the author_name parameter.
The feed document must have a self link; this is set using the feed_url parameter when constructing the feed object.
I'm attaching the example code, modified with the above suggestions. Note that I added a few line breaks in the output of the script, to prevent exceedingly long lines.
Change History (20)
comment:3 Changed 9 years ago by
|Owner:||changed from anonymous to John DeRosa|
|Status:||assigned → new|