[wp-trac] [WordPress Trac] #5393: language_attributes() template
tag should be able to output lang and xml:lang attributes together
WordPress Trac
wp-trac at lists.automattic.com
Tue Nov 27 13:45:49 GMT 2007
#5393: language_attributes() template tag should be able to output lang and
xml:lang attributes together
-------------------------+--------------------------------------------------
Reporter: ionfish | Owner: anonymous
Type: enhancement | Status: new
Priority: low | Milestone: 2.5
Component: i18n | Version: 2.4
Severity: minor | Keywords:
-------------------------+--------------------------------------------------
The [http://www.w3.org/TR/xhtml1/#C_7 XHTML spec] states that one should
Use both the lang and xml:lang attributes when specifying the language
of an element. The value of the xml:lang attribute takes precedence.
Currently the language_attributes() function will only output one or the
other, depending on the html_type option.
One way of dealing with this issue would be to add a parameter to the
function allowing theme authors to specify that the template in which it
is used is XHTML (since as far as I know there is no way to determine this
through checking the WordPress backend).
--
Ticket URL: <http://trac.wordpress.org/ticket/5393>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list