[wp-trac] [WordPress Trac] #20291: html element "lang" bug
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 23 16:53:40 UTC 2012
#20291: html element "lang" bug
---------------------------+-----------------------------
Reporter: ricardojvcruz | Owner: ricardojvcruz
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 3.3.1
Severity: normal | Keywords: has-patch
---------------------------+-----------------------------
Wordpress core function "language_attributes()" is returning by example
'en_US' and should return 'en-US'.
This could be important when crawlers are parsing and indexing pages
saving the parsed language found in that element.
Following w3c specification of html language attribute we can confirm
that.
HTML 4.0 lang spec:
http://www.w3.org/TR/html4/struct/dirlang.html
HTML 4.1 lang spec:
http://www.w3.org/TR/html401/struct/dirlang.html#adef-lang
HTML 5 lang spec:
http://dev.w3.org/html5/html-author/#the-html-element
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20291>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list