Make WordPress Core

Opened 17 years ago

Closed 17 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: Focuses:

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

Download all attachments as: .zip

Change History (5)

#1 @azaozz
17 years ago

  • Priority normal → low
  • Severity major → minor

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

#2 @sirzooro
17 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
17 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
17 years ago

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