[wp-trac] Re: [WordPress Trac] #5221: W3C validation Warnings

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 19 11:33:11 GMT 2007


#5221: W3C validation Warnings
-----------------------+----------------------------------------------------
 Reporter:  tandilboy  |        Owner:  anonymous
     Type:  defect     |       Status:  closed   
 Priority:  normal     |    Milestone:           
Component:  Template   |      Version:  2.3      
 Severity:  normal     |   Resolution:  invalid  
 Keywords:             |  
-----------------------+----------------------------------------------------
Changes (by JeremyVisser):

  * status:  reopened => closed
  * resolution:  => invalid
  * milestone:  2.5 =>

Comment:

 I'm sorry, changing the meta tag does not change what the Content-Type
 actually is — it needs to be set in the HTTP headers. Please just take my
 advice and change the DOCTYPE to an XHTML 1.0 one, please.

 This is not a !WordPress issue, actually, this is completely theme-
 related, stemming from the fact that the theme is not telling !WordPress
 the correct HTML type.

 If you really want to use XHTML 1.1 still, then add the following to your
 theme's {{{functions.php}}}:

 {{{
 <?php

 function xhtml_mime_type($s) {
     return 'application/xhtml+xml';
 }

 add_filter('option_html_type', 'xhtml_mime_type');

 ?>
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5221#comment:9>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list