[wp-trac] [WordPress Trac] #9263: wp_head() hook introduces invalid markup

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 2 20:36:40 GMT 2009


#9263: wp_head() hook  introduces invalid markup
--------------------------+-------------------------------------------------
 Reporter:  pacq          |       Owner:                       
     Type:  defect (bug)  |      Status:  new                  
 Priority:  normal        |   Milestone:  Unassigned           
Component:  Validation    |     Version:  2.7.1                
 Severity:  normal        |    Keywords:  wp_head(), validation
--------------------------+-------------------------------------------------
 Starting from version 2.7.1, the ''wp_head()'' hook adds in the header the
 following code:

 {{{
 <style type="text/css">
 .recentcomments a { display:inline !important;
 padding: 0 !important;margin: 0 !important; }
 </style>
 }}}

 According to the [http://validator.w3.org/W3C Markup Validator], the
 validation of the code as "XHTML strict" fails, because the "document type
 does not allow element ''style'' here."

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/9263>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list