Page MenuHomePhabricator

<h1> page heading is equipped with empty lang="" attribute
Closed, DuplicatePublic


It has been reported to me and is appearing on all wikis probably since last week that the page headline looks like

<h1 lang="" id="firstHeading" class="firstHeading">Page Name</h1>

It is not obvious which benefit is expected from empty lang="" attribute.

  • In general, the title which may contain ... editing or the name of a special page in user language will inherit the language from <body> ancestor.
  • A page headline in language differing from page context is not expected.
  • If any, an empty value is pointless.

A user configured special markup for all elements equipped with lang= to check whether all phrases in different scripts are equipped with appropriate attribute gets highlite on all page headlines now.