Opened 4 years ago

Closed 4 years ago

#9977 closed enhancement (wontfix)

XHTML may have XML declaration

Reported by: redgecko Owned by:
Priority: low Milestone:
Component: Validation Version: 2.7.1
Severity: minor Keywords: has-patch
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 4 years ago.

Download all attachments as: .zip

Change History (5)

  • 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.

-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.

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.".

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