Make WordPress Core

Opened 22 years ago

Closed 21 years ago

#1093 closed enhancement (wontfix)

Automatic content-type negotiation

Reported by: idanso Owned by: matt
Priority: normal Milestone:
Component: General Version: 1.5
Severity: normal Keywords:
Cc: Focuses:

Description

While delivering mostly validating xhtml content, wordpress does not currently support sending it's documents as application/xhtml+xml mime type:
​http://www.w3.org/TR/xhtml-media-types/

There is a "hidden pref" in 1.5 that allows setting an explicit content-type('html_type'), but it performs no content negotiation, thus blocking non-xhtml browsers.]

This patch obsoletes the 'html_type' pref, and introduces 'use_xhtml_mime' instead. when enabled, it sends application/xhtml+xml or text/html based on information from the "Accept" header.

Attachments (1)

xhtml_negotiation.patch​ (5.7 KB ) - added by idanso 21 years ago.

Download all attachments as: .zip

Change History (6)

#1 @idanso
22 years ago

  • Patch → No

#2 @matt
22 years ago

  • Owner changed from anonymous to matt
  • Resolution 10 → 90
  • Status new → closed

Making the switch to application/xhtml+xml should be a concious decision on the part of the weblog author and should require a little work.

#3 @idanso
22 years ago

  • Resolution 90 → 30
  • Status closed → assigned

The application/xhtml+xml support is _optional_ and _disabled_ by default. it is only enabled if the web author chooses too.

#4 @markjaquith
21 years ago

The problem I see is that random users might check that box, not knowing what it is. It's rather one of those things where if you're geeky enough to want to do this, you're geeky enough to figure out how to do. But that's just my take.

#5 @markjaquith
21 years ago

  • Resolution → wontfix
  • Status assigned → closed
Note: See TracTickets for help on using tickets.