[wp-trac] [WordPress Trac] #12135: language_attributes() generating invalid XHTML 1.1 code

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 15 20:36:19 UTC 2010


#12135: language_attributes() generating invalid XHTML 1.1 code
--------------------------+-------------------------------------------------
 Reporter:  shidouhikari  |        Owner:          
     Type:  defect (bug)  |       Status:  reopened
 Priority:  normal        |    Milestone:  2.9.2   
Component:  Validation    |      Version:  2.9.1   
 Severity:  normal        |   Resolution:          
 Keywords:  has-patch     |  
--------------------------+-------------------------------------------------
Changes (by toscho):

 * cc: toscho (added)


Comment:

 No current screenreader supports xml:lang, that’s one of the reasons why
 XHTML 1.1 should never be sent as text/html.

 If you really need this, just use a filter for 'language_attributes'. It’s
 already there for you. We don’t need to cover such exotic cases in the
 core.

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


More information about the wp-trac mailing list