https://bugzilla.wikimedia.org/show_bug.cgi?id=37564
Web browser: ---
Bug #: 37564
Summary: <html> lang="" attribute should be set to the content
language code
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
Contrary to what we thought, this attribute is not set to the content language
code, but to whatever the intended language code is.
If whatever preference (or uselang= query parameter value) is not of a
supported language, the interface falls back to the default (English) but the
value here does not.
See also:
* https://bugzilla.wikimedia.org/show_bug.cgi?id=5790#c26
* bug 36938 (which would almost be a non-issue if this bug was fixed, since
valid language codes probably don't contain html special characters, but it
doesn't hurt to escape it anyway)
* bug 24747
So urls like:
* https://en.wikipedia.org/wiki/Main_Page?uselang=a%27%20onmouseover
* https://en.wikipedia.org/wiki/Main_Page?uselang=krinkle
should have <html lang="en">
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l