Skip to content

fix(w3c/seo): HTTPS schema.org context, fix datePublished#5248

Open
marcoscaceres wants to merge 3 commits intomainfrom
fix/5021-jsonld
Open

fix(w3c/seo): HTTPS schema.org context, fix datePublished#5248
marcoscaceres wants to merge 3 commits intomainfrom
fix/5021-jsonld

Conversation

@marcoscaceres
Copy link
Copy Markdown
Contributor

Closes #5021

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates W3C SEO JSON-LD generation so the emitted structured data uses schema.org’s HTTPS context and the correct publication-date property for references. It addresses issue #5021, which reported validation errors in the generated JSON-LD for W3C TR pages.

Changes:

  • Switch the emitted JSON-LD schema.org context URL from HTTP to HTTPS.
  • Update the JSON-LD @vocab mapping to use HTTPS as well.
  • Rename citation output from publishedDate to datePublished.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/w3c/seo.js Updates the generated JSON-LD context and citation date field names.
tests/spec/w3c/seo-spec.js Adjusts SEO JSON-LD expectations for the HTTPS schema.org context.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/w3c/seo.js
Comment thread src/w3c/seo.js
@marcoscaceres
Copy link
Copy Markdown
Contributor Author

@copilot Can you confirm all your feedback has been addressed? Can you fix anything that was not addressed?

@marcoscaceres marcoscaceres marked this pull request as ready for review May 4, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error in the generated JSON-LD

2 participants