Skip to content

<html> element does not have a [lang] attribute #2471

Closed

Description

@gedenata

🐛 Bug Report

If a page doesn't specify a lang attribute, a screen reader assumes that the page is in the default language that the user chose when setting up the screen reader. If the page isn't actually in the default language, then the screen reader might not announce the page's text correctly.

Have you read the Contributing Guidelines on issues?

yes.

To Reproduce

  • When deploy the index.html to server there is no lang attribute, or
  • View Page Source the website <!DOCTYPE html><html lang=""><head><meta charSet="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" />

Expected behavior

Your Environment

  • Docusaurus version used: "docusaurus": "^1.14.4"
  • Google Chrome Version 80.0.3987.149 (Official Build) (64-bit)
  • macOS Mojave V.10.14.6

Activity

  1. added
    bug
    status: needs triage
    on Mar 27, 2020
  2. added and removed
    status: needs triage
    on Mar 27, 2020
  3. added
    v1
    on Mar 27, 2020
  4. slorber commented on Aug 21, 2020

    @slorber
    Collaborator

    will be fixed in v2 i18n: #3317

  5. slorber commented on Jun 10, 2021

    @slorber
    Collaborator

    The Docusaurus team is actively working on Docusaurus v2.

    After a very long alpha, Docusaurus v2 is now in beta.
    We believe that the v2 beta is already better than v1, and v2 is ready for maintstream adoption.

    Apart from critical issues and security fixes, we don't plan to invest much time on Docusaurus v1 anymore.

    We are all closing v1 issues.
    Maybe the current issue is already fixed in Docusaurus v2.
    Please try to upgrade, and if the issue is still there on Docusaurus v2, open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugv1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions