Skip to content

Linter Rule: Don't flag meta[itemprop] for html-head-only-elements#867

Merged
marcoroth merged 1 commit into
mainfrom
html-head-only-elements-meta-itemprop
Nov 13, 2025
Merged

Linter Rule: Don't flag meta[itemprop] for html-head-only-elements#867
marcoroth merged 1 commit into
mainfrom
html-head-only-elements-meta-itemprop

Conversation

@marcoroth

@marcoroth marcoroth commented Nov 13, 2025

Copy link
Copy Markdown
Owner

This pull request changes the html-head-only-elements linter rule to allow for <meta itemprop=""> elements in the <body>:

<body>
  <div itemscope itemtype="https://schema.org/Book">
    <span itemprop="name">The Hobbit</span>
    <meta itemprop="author" content="J.R.R. Tolkien">
    <meta itemprop="isbn" content="978-0618260300">
  </div>
</body>

Resolves #859

@github-actions github-actions Bot added documentation Improvements or additions to documentation linter typescript linter-rule labels Nov 13, 2025
@marcoroth marcoroth merged commit 87c5d5b into main Nov 13, 2025
12 checks passed
@marcoroth marcoroth deleted the html-head-only-elements-meta-itemprop branch November 13, 2025 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation linter linter-rule typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

html-head-only-elements incorrectly flags <meta itemprop="...">

1 participant