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
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.

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
@argl argl added localization i18n & l10n p3 We don't have visibility when this will be addressed. engineering-request enahncement requests from community, writers and partners needs decision from engineering needs discussion and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. idle labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants