Skip to content

Linter: Implement html-no-duplicate-meta-names linter rule#383

Merged
marcoroth merged 7 commits intomainfrom
html-meta-name-must-be-unique
Oct 14, 2025
Merged

Linter: Implement html-no-duplicate-meta-names linter rule#383
marcoroth merged 7 commits intomainfrom
html-meta-name-must-be-unique

Conversation

@marcoroth
Copy link
Owner

Resolves #381

@marcoroth marcoroth added feature New feature or request linter linter-rule labels Aug 15, 2025
@marcoroth marcoroth changed the title Implement html-meta-name-must-be-unique linter rule Linter: Implement html-meta-name-must-be-unique linter rule Oct 8, 2025
@marcoroth marcoroth changed the title Linter: Implement html-meta-name-must-be-unique linter rule Linter: Implement html-no-duplicate-meta-names linter rule Oct 14, 2025
@marcoroth marcoroth marked this pull request as ready for review October 14, 2025 18:49
@marcoroth marcoroth merged commit f6f5162 into main Oct 14, 2025
7 checks passed
@marcoroth marcoroth deleted the html-meta-name-must-be-unique branch October 14, 2025 18:55
asilano pushed a commit to fac/herb that referenced this pull request Oct 21, 2025
@pardeyke
Copy link
Contributor

pardeyke commented Nov 12, 2025

I believe there is one exception to this:

<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#212529" media="(prefers-color-scheme: dark)">

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta/name/theme-color

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

Labels

feature New feature or request linter linter-rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linter Rule: Duplicate <meta> name attributes are not allowed

2 participants