Page MenuHomePhabricator

Use 'de-CH' instead of 'de-ch' for attribute lang in HTML
Closed, ResolvedPublic

Description

  • With [[Special:PageLanguage]] it is possible to set the page content language per page. In the MediaWiki namespace there also exists several page content languages.
  • On action edit the language code gets filled into <textarea lang="...">.
  • Firefox supports an automatic selection of the spell checker language based on the lang attribute of the textarea element. [1]
  • But Firefox set the spell checker language to "Deutsch (Schweiz)" only when the lang attribute contains exactly 'de-CH'. 'de-ch' set the spell checker language to "Deutsch (Deutschland)".

[1] https://developer.mozilla.org/en-US/docs/Web/HTML/Controlling_spell_checking_in_HTML_formsControlling_spell_checking_in_HTML_forms


Version: unspecified
Severity: minor
See Also:
T74940

Details

Reference
bz72939

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:44 AM
bzimport set Reference to bz72939.
Fomafix created this task.Nov 4 2014, 8:02 AM

Change 170890 had a related patch set uploaded by Nikerabbit:
Apply wfBCP47 to language attribute on edit page

https://gerrit.wikimedia.org/r/170890

Change 170890 merged by jenkins-bot:
Use getHtmlCode() instead of getCode() to set the lang attribute

https://gerrit.wikimedia.org/r/170890