Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#9977 closed enhancement (wontfix)

XHTML may have XML declaration

Reported by: redgecko Owned by:
Milestone: Priority: low
Severity: minor Version: 2.7.1
Component: Validation Keywords: has-patch
Focuses: Cc:


W3C Recommendation says that XHTML document authors are strongly encouraged to use XML declarations in all their documents. However, at the current version, there are no XML declaration in WordPress outputs.

Attachments (1)

xml-declaration.diff (10.7 KB) - added by redgecko 9 years ago.

Download all attachments as: .zip

Change History (5)

#1 @azaozz
9 years ago

  • Priority changed from normal to low
  • Severity changed from major to minor

-1. Some (older) browsers seem to switch to quirks mode when DOCTYPE is not on the first line in the html.

#2 @sirzooro
9 years ago

-1 too. If we want to do this, we should do it only if browser supports XHTML. This can be done by looking for application/xhtml+xml in Accept: header.

#3 @peaceablewhale
9 years ago

I think this is a "won't fix". According to XHTML Compatibility Guidelines (http://www.w3.org/TR/xhtml-media-types/#compatGuidelines), "DO NOT include XML processing instructions NOR the XML declaration.".

#4 @Denis-de-Bernardy
9 years ago

  • Milestone Unassigned deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.