adding support for self closing tags in syndication feeds
the code for syndication feeds was written in a time where self closing tags didn't exist. but today, if an element has no text between the tags, the standard is that it should be a self closing tag. python added this functionality in 3.2 to XMLGenerator but django still doesn't use this in generating syndication feeds. this is the matter of passing a single argument to the SimplerXMLGenerator that django uses for generating feeds. since SimplerXMLGenerator directly inherits from pythons XMLGenrator, passing the arguments works with this class too .
this is my attempt at making it right
https://github.com/django/django/pull/14451
Change History
(6)
Owner: |
changed from nobody to Mohammadreza Varasteh
|
Status: |
new → assigned
|
Triage Stage: |
Unreviewed → Accepted
|
Triage Stage: |
Accepted → Unreviewed
|
Needs documentation: |
set
|
Needs tests: |
set
|
Triage Stage: |
Unreviewed → Accepted
|
Type: |
New feature → Cleanup/optimization
|
Component: |
Utilities → contrib.syndication
|
Needs documentation: |
unset
|
Needs tests: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
The-Daishogun, you shouldn't accept your own tickets.