[wp-trac] [WordPress Trac] #8745: language_attributes always check for 'xhtml', never for 'html'

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 29 15:37:40 GMT 2008


#8745: language_attributes always check for 'xhtml', never for 'html'
--------------------------+-------------------------------------------------
 Reporter:  zekrap        |       Owner:  anonymous                             
     Type:  defect (bug)  |      Status:  new                                   
 Priority:  normal        |   Milestone:  2.7.1                                 
Component:  Template      |     Version:  2.7                                   
 Severity:  normal        |    Keywords:  language_attributes html xhtml doctype
--------------------------+-------------------------------------------------
 To choose between "lang=" or "xml:lang=", the language_attributes checks
 both 'html_type' option and doctype received as argument. The bug is that
 it checks twice whether doctype equals 'xhtml', instead of testing the
 opposite case.
 I made a patch to change the first test (for html-like "lang=" case) to
 check doctype == 'html' (well, maybe quicker to remove the 'x' than apply
 a patch, though ;-) ).

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


More information about the wp-trac mailing list