-
Bug
-
Resolution: Fixed
-
Major
-
4.1.6, 4.2.3, 4.3
-
WP Sprint 2023-I4.2 (Clones)
This issue was detected during accessibility audit on learner-facing pages in Workplace performed in August-September 2023 by AbleDocs.
Invalid Language attribute
The LANG attribute "en-wp" is not valid as "wp" is not a valid ISO country code
By setting the appropriate language attribute it allows screen readers to pronounce words correctly
Recommendation from AbleDocs:
Set to a valid English subtype, en-AU or en-CA for example. If this website may be used in multiple countries either set the LANG to just "en" or have it determine the country code per organization
List of valid languages: https://www.w3docs.com/learn-html/html-language-codes.html
Example failures
WAVE
Nu Validator
Error: Bad value de-kids for attribute lang on element html: Bad script subtag.
|
|
From line 1, column 16; to line 3, column 51
|
|
TYPE html>↩↩<html dir="ltr" lang="de-kids" xml:lang="de-kids">↩<head
|
|
Error: Bad value de_du for attribute lang on element a: The language subtag de_du is not a valid language subtag.
|
|
From line 113, column 97; to line 113, column 287
|
|
<a href="http://localhost:8000/login/index.php?lang=de_du" class="dropdown-item menu-action" data-lang="de_du" lang="de_du" role="menuitem" tabindex="-1" aria-labelledby="actionmenuaction-2">
|
- blocks
-
MDL-80111 Language pack issue in H5P editor
- Closed
- caused a regression
-
MDL-80393 Ensure Javascript requests that require current language have access to it
- Closed
- duplicates
-
MDL-70531 Use two letter country codes in HTML attributes (to conform with BCP 47)
- Closed
- has a non-specific relationship to
-
MDLSITE-2191 Check and correct the iso6391 and iso6392 strings in each lang pack
- Open
-
MDL-80731 Invalid /Lang attribute in generated PDF files
- Closed
-
MDL-79545 Use Unicode CLDR for language strings that are the same in all software projects
- Open
- is a regression caused by
-
MDL-72885 Languages in language selection menu are missing lang attribute
- Closed