[wp-trac] Re: [WordPress Trac] #8996: Serve application/xhtml+xml if browser, theme and plugins are compliant

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 31 19:31:03 GMT 2009


#8996: Serve application/xhtml+xml if browser, theme and plugins are compliant
---------------------------+------------------------------------------------
 Reporter:  sampablokuper  |        Owner:  anonymous
     Type:  enhancement    |       Status:  new      
 Priority:  normal         |    Milestone:  2.9      
Component:  Template       |      Version:  2.7      
 Severity:  normal         |   Resolution:           
 Keywords:                 |  
---------------------------+------------------------------------------------
Comment (by jacobsantos):

 I think it would be better to allow the core to specify sections that
 aren't XHTML compatible than ones that are. There will be more areas that
 are compatible with XHTML mime type than not.

 I think it is a good idea to allow plugins to specify that it is XHTML
 compatible. However, it is really only need for areas that are outputted
 to the main site. I have plugins which don't mess with the actual front
 page content, so it would not be needed for me to specify that my theme is
 compatible.

 I'm not sure, I think it can be assumed that plugins are XHTML compatible
 unless otherwise stated as well. There should be hooks in place, so that a
 plugin can be created that can be set up to specify which plugins are not
 compatible, so that if they are activated, it will trip the text/html mime
 type.

 There can be a function available for theme authors that allows them to
 set the MIME type, and if it isn't set, then it is assumed that the theme
 doesn't want to have the XHTML mime type set. It would have to be set in
 the functions.php file and hook into wp_init very late..

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


More information about the wp-trac mailing list