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 5330 - http request header does not specify "application/xhtml+xml" in Accept
Summary: http request header does not specify "application/xhtml+xml" in Accept
Status: RESOLVED DUPLICATE of bug 785
Alias: None
Product: Validator
Classification: Unclassified
Component: Website (show other bugs)
Version: HEAD
Hardware: Macintosh All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
Depends on:
Reported: 2007-12-25 21:09 UTC by Michael Lunsford
Modified: 2007-12-25 23:32 UTC (History)
0 users

See Also:


Description Michael Lunsford 2007-12-25 21:09:22 UTC
the online validator warns: Conflict between Mime Type and Document Type 
The document is being served with the text/html Mime Type which is not a registered media type for the XHTML 1.1 Document Type. The recommended media type for this document is: application/xhtml+xml

However, the validator fails to inform the server that it supports application/xhtml+xml as part of the request header. So, the server issues the text/html header instead.
Comment 1 Olivier Thereaux 2007-12-25 23:32:59 UTC
please look at Bug 785. Basically:
* a user agent like the validator does not need to send an accept header
* with the current spec, it's wrong to send xhtml1.1 as text/html (why not use xhtml 1.0?)
* you should fix your accept hack to server application/xhtml+xml by default, and send text/html only to agents that send an accept not containing this media type
* if for testing purposes you need the validator to send accept headers, see

*** This bug has been marked as a duplicate of bug 785 ***