This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
I have found 2 errors with the validator when trying to validate my XHTML 1.1 website. The first error I found is with the MIME type check. This warning is printed if my page is not being served as application/xhtml+xml: "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" I have this code at the top of my webpage as per the link associated with the error (http://juicystudio.com/article/content-negotiation.php): header("Vary: Accept"); if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") === FALSE){ header("Content-type: text/html"); } else{ header("Content-type: application/xhtml+xml"); } If I remove the if statement and just put header("Content-type: application/xhtml+xml"), it works fine. The second error is with the <html> tag. According to the XHTML 1.1 documentation (http://www.w3.org/TR/xhtml11/conformance.html#strict), "xsi:schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"" is required to be in the <html> tag, but the validator says "there is no attribute "xsi:schemaLocation"". These are only minor bugs, but I want to make sure that the validator follows the documentation.
(In reply to comment #0) > I have found 2 errors with the validator when trying to validate my XHTML 1.1 > website. > > The first error I found is with the MIME type check. This warning is printed > if my page is not being served as application/xhtml+xml: See Bug #18 > The second error is with the <html> tag. According to the XHTML 1.1 > documentation (http://www.w3.org/TR/xhtml11/conformance.html#strict), > "xsi:schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"" is required > to be in the <html> tag, but the validator says "there is no attribute > "xsi:schemaLocation"". XHTML 1.1 is back to draft status and is a moving target, which is why some recent changes may not be in the production validator yet. Could you try with: http://qa-dev.w3.org/wmvs/HEAD/ * if the test validator acts OK, all is well - that will be propagated to the production service soon * if the test validator has the same problem, can you contact www-html-editor@w3.org and send feedback that the XHTML1.1 DTD is out of sync with the prose requirements for xsi:schemaLocation? That would be very much appreciated.
closing qs duplicate of Bug #18 and #5329 *** This bug has been marked as a duplicate of bug 5329 ***
The MIME Type is fixed, but it still says "there is no attribute "xsi:schemaLocation"". I have e-mailed the address you posted.