#4697 closed defect (bug) (fixed)
RSS feeds give incorrect content types
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | normal | Version: | 2.3 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
The RSS feeds are using a content type of "text/xml" which is not the standard. They should be using "application/rss+xml" instead.
Patch for trunk attached.
Attachments (1)
Change History (7)
#1
@
17 years ago
I think Firefox and IE fixed the problems where changing to application/* would cause a download. This is probably safe to do now.
#3
@
17 years ago
- Component changed from Optimization to General
- Keywords has-patch removed
- Milestone changed from 2.3 to 2.4 (next)
I think this topic regularly comes up, and I don't recall real benefit being demonstrated.
I recall that "application/xml" works on IE6, IE7 and Firefox.
Otto42 is there now a "standard"? MarkJ commented on a wp-testers thread in January, "Nah, text/xml is fine for RSS 2.0 AFAIK application/rss+xml has been
proposed but not standardized. http://www.rssboard.org/rss-mime-type-application.txt "
#4
@
17 years ago
Depends on how you define "standard". It has yet to be registered with IANA and such, but the feed validator wants application/rss+xml:
http://feedvalidator.org/docs/warning/UnexpectedContentType.html
The use of application/xml and/or text/xml, while technically correct, was only to be compatible with IE6 and to allow the feed to display instead of to download. All major feed readers work with, and prefer, the more specific MIME types of rdf+xml, rss+xml, atom+xml, and so on.
Change text/xml to application/rss+xml in the various rss feeds