infobox: wrap distribution microdata as DataDownload with encodingFormat - #1451
Merged
Conversation
added 3 commits
July 25, 2026 23:44
…nvalid) Rich Results Test 2026-07-25 flagged an 'Unnamed item' Dataset on ws-head-latency-* + xstocks-peg. Turned out to be the microdata Dataset declared by <aside itemScope itemType=schema.org/Dataset> in the bench-infobox component: it exposes identifier, variableMeasured, dateModified, license, sameAs, distribution via itemProp attributes but was missing name, description, creator. Google parses the microdata alongside the JSON-LD block and validates each Dataset in isolation, so an incomplete microdata Dataset flags even when the JSON-LD siblings are complete. Adds hidden <meta itemProp> nodes for name/description/url/creator so the microdata graph stays valid without adding duplicate visible text to the human-facing infobox.
GSC follow-up flag after PR #1450 fixed the critical name/description issue: 'Missing field encodingFormat (in distribution)' non-critical warning on the same 4 URLs. The itemProp='distribution' was on a bare <a> tag, which Google parsed as a distribution with only url — no encodingFormat, no contentUrl. Wrap in itemScope + itemType=DataDownload so the microdata declares the proper DataDownload shape. contentUrl comes from the <a> href via itemProp='contentUrl', encodingFormat comes from a hidden meta.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to PR #1450
After the microdata name/description fix (#1450), GSC now shows a non-critical warning on the same 4 URLs: 'Missing field encodingFormat (in distribution)'.
The itemProp='distribution' on
bench-infobox.tsxwas on a bare<a>tag → Google parsed it as a distribution with only url, no encodingFormat, no contentUrl.Fix
Wrap in
<span itemScope itemType=DataDownload>with:<meta itemProp='encodingFormat' content='application/json' /><a itemProp='contentUrl'>(visible link stays, its href becomes the contentUrl)Test plan