WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 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:

Description

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 6 years ago.

Download all attachments as: .zip

Change History (5)

@redgecko6 years ago

comment:1 @azaozz6 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.

comment:2 @sirzooro6 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.

comment:3 @peaceablewhale6 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.".

comment:4 @Denis-de-Bernardy6 years ago

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