Opened 16 years ago
Closed 16 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)
Change History (5)
#2
@
16 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
@
16 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.".
Note: See
TracTickets for help on using
tickets.
-1. Some (older) browsers seem to switch to quirks mode when
DOCTYPE
is not on the first line in the html.