html lang
attribute gets only set dynamically
#12034
Labels
engineering-request
enahncement requests from community, writers and partners
localization
i18n & l10n
needs decision from engineering
needs discussion
p3
We don't have visibility when this will be addressed.
Summary
The
lang
attribute on thehtml
tag only gets set through javascript while it should already be set correctly when the page gets delivered.Compare the html code that shows up in the inspector with javacript enabled and with javascript disabled (here the language tag ).
Seems to be similar in observed behavior to #2960 from three years ago.
URL
But it should be the same issue on all non-english pages.
Reproduction steps
html
lang
attributeExpected behavior
The
html
lang
attribute matches the document language (like it does when javascript is enabled).Actual behavior
The attribute always says
en-US
regardless of language.Device
Desktop
Browser
Firefox
Browser version
Stable
Operating system
Linux
Screenshot
No response
Anything else?
No response
Validations
The text was updated successfully, but these errors were encountered: