html lang
attribute gets only set dynamically
#12034
Labels
idle
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
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: