[wp-trac] [WordPress Trac] #22095: Invalid markup of Twenty Twelve

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 4 13:55:49 UTC 2012


#22095: Invalid markup of Twenty Twelve
-----------------------------+--------------------------
 Reporter:  alexvorn2        |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 http://validator.w3.org/ - the theme gives me 4 errors, most can be found
 in twentytwelve_entry_meta() function like:


 {{{
         $date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time
 class="entry-date" datetime="%3$s" pubdate>%4$s</time></a>',
                 esc_url( get_permalink() ),
                 esc_attr( get_the_time() ),
                 esc_attr( get_the_date( 'c' ) ),
                 esc_html( get_the_date() )
         );
 }}}

 Error example:
 "Attribute pubdate not allowed on element time at this point."

 There are other errors, the point of this ticket is to check all possible
 errors and make the theme validated.

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


More information about the wp-trac mailing list