Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html lang attribute gets only set dynamically #12034

Open
3 tasks done
slatian opened this issue Oct 27, 2024 · 0 comments
Open
3 tasks done

html lang attribute gets only set dynamically #12034

slatian opened this issue Oct 27, 2024 · 0 comments
Labels
idle needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@slatian
Copy link

slatian commented Oct 27, 2024

Summary

The lang attribute on the html 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

  1. Disable javacript or fetch the page using curl
  2. Look at the html lang attribute

Expected 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

@github-actions github-actions bot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Oct 27, 2024
@github-actions github-actions bot added the idle label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idle needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

1 participant