summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt2
-rw-r--r--includes/language.inc2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index b6d2297af..d90489357 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,6 +1,8 @@
Drupal 7.36, xxxx-xx-xx (development version)
-----------------------
+- Changed the "lang" attribute on language links to "xml:lang" so it validates
+ as XHTML (minor markup change).
- Prevented the form API from allowing arrays to be submitted for various form
elements (such as textfields, textareas, and password fields).
- Fixed a bug in the Contact module which caused the global user object to have
diff --git a/includes/language.inc b/includes/language.inc
index 803a63041..24267d8a1 100644
--- a/includes/language.inc
+++ b/includes/language.inc
@@ -297,7 +297,7 @@ function language_negotiation_get_switch_links($type, $path) {
// Add support for WCAG 2.0's Language of Parts to add language identifiers.
// http://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning-other-lang-id.html
foreach ($result as $langcode => $link) {
- $result[$langcode]['attributes']['lang'] = $langcode;
+ $result[$langcode]['attributes']['xml:lang'] = $langcode;
}
if (!empty($result)) {