This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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.
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 http://validator.w3.org/docs/users.html#option-accept *** This bug has been marked as a duplicate of bug 785 ***