Code

Opened 8 years ago

Closed 8 years ago

#2021 closed enhancement (fixed)

Improved Atom feed

Reported by: ned@… Owned by: adrian
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The Atom feed in feedgenerator creates <link href='...'/> elements with no rel attribute. The Atom spec says this is OK, and should be interepreted as rel='alternate', but Bloglines and Safari don't seem to do it. So feedgenerator should output rel='alternate' to be more explicit.

Patch: in django\utils\feedgenerator.py, at line 220, change this line:

handler.addQuickElement(u"link", u"", {u"href": item['link']})

to:

handler.addQuickElement(u"link", u"", {u"href": item['link'], u"rel": u"alternate"})

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [3004]) Fixed #2021 -- Improved Atom feed by outputting rel=alternate. Thanks, Ned Batchelder

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.