This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7462 - Warning about application/xhtml+xml should not be returned when content is HTML
Summary: Warning about application/xhtml+xml should not be returned when content is HTML
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Web interface (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 enhancement
Target Milestone: ---
Assignee: fd
QA Contact: fd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-31 07:52 UTC by fd
Modified: 2009-09-10 14:47 UTC (History)
0 users

See Also:


Attachments

Description fd 2009-08-31 07:52:22 UTC
The warning is usually unclear, in particular when the content being checked is HTML.

On top of the message, authors who "fix" the problem are likely to test the result with IE, and be prompted to download the content.

The message should be way clearer to reach a broader audience.

See:
http://lists.w3.org/Archives/Public/public-bpwg/2009Aug/0026.html
Comment 1 fd 2009-09-04 12:38:34 UTC
Message completed as follow:

[[
See how to properly configure server mime types. If the page under test uses a non-XML version of HTML, you should first consider switching to XHTML. In any case, do not serve a non-XML version of HTML with an application/xhtml+xml media type.

Beware: some browsers have no support for application/xhtml+xml (e.g. Internet Explorer) and prompt users to download the page if it served as such. You should not serve XHTML content to browsers that do not support it. Use Content Negotiation to match the browser's capabilities. See the XHTML Media Types - Second Edition W3C note for more information, and in particular the Compatibility Guidelines to follow to have XHTML documents rendered on both XHTML-aware and HTML-only user agents.
]]

(links removed for clarity, but the real version contains links to the referenced documents).