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

fix: using lang attribute with empty string in html template #5992

Merged
merged 1 commit into from Oct 26, 2020

Conversation

fangbinwei
Copy link
Collaborator

Fixes #5945

lang="en" may be wrong to users, use empty string instead. See : h5bp/html5-boilerplate#1542

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

@botic
Copy link

botic commented Oct 23, 2020

This would fix my original issue in the way I thought about it, thx @fangbinwei 👍

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Being an empty attribute should be enough indication for developers to insert the correct language themselves.

Copy link
Member

@sodatea sodatea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 very good insight

@sodatea sodatea merged commit 2373df1 into vuejs:dev Oct 26, 2020
@fangbinwei fangbinwei deleted the fix-html-lang branch October 26, 2020 16:51
sodatea pushed a commit that referenced this pull request Jan 6, 2021
Fixes #5945

`lang="en"` may be wrong to users, use empty string instead. See : h5bp/html5-boilerplate#1542
This was referenced Mar 16, 2021
This was referenced Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Language attribute of <html> should not be set to English by default
3 participants