Radhad
Erfahrenes Mitglied
Hallo zusammen,
ich verstehe iene Meldung beim W3C Validator nicht. Und zwar geht um diese Prüfung: http://validator.w3.org/check?uri=http//www.codegroup.de/
Da steht folgendes:
Versteht jemand den Fehler und weiß, wie man das behebt? Im Quelltext wird eigentlich application/xhtml+xml angegeben - aber wie es aussieht als meta-Tag. Sollte man das evtl. besser als PHP-header() setzen? Ich bin ziemlich ratlos ^^
Gruß Radhad
ich verstehe iene Meldung beim W3C Validator nicht. Und zwar geht um diese Prüfung: http://validator.w3.org/check?uri=http//www.codegroup.de/
Da steht folgendes:
Code:
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
Using a wrong media type for a certain document type may confuse the validator and other user agents with respect to the nature of the document, and you may get some erroneous validation errors. How to fix this problem? One of the following techniques should help:
* If you are serving a static file on a Web server, changing its extension should help. Use e.g .xhtml for XHTML or .mathml for MathML.
* You may need to reconfigure your Web server. This Setting up MIME Types tutorial has instructions for Apache, Tomcat and IIS.
* If the document is generated dynamically, the scripting language should allow you to set up the mime type: this article on MIME Types and Content Negotiation has examples in PHP, Perl, and ASP.
Versteht jemand den Fehler und weiß, wie man das behebt? Im Quelltext wird eigentlich application/xhtml+xml angegeben - aber wie es aussieht als meta-Tag. Sollte man das evtl. besser als PHP-header() setzen? Ich bin ziemlich ratlos ^^
Gruß Radhad