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

Handle JSONLD arrays (fixes #908) #947

Merged
merged 2 commits into from
Jan 16, 2025
Merged

Handle JSONLD arrays (fixes #908) #947

merged 2 commits into from
Jan 16, 2025

Conversation

ysuhaas
Copy link
Contributor

@ysuhaas ysuhaas commented Jan 10, 2025

This code change:

  • Adds handling for the case where the <script type="application/ld+json"> element contains an array of objects to correctly parse the metadata from the first available node

Fixes #908

Copy link
Contributor

@gijsk gijsk left a comment

Choose a reason for hiding this comment

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

Makes sense, thank you, also for the test!

@gijsk gijsk merged commit 118f015 into mozilla:main Jan 16, 2025
1 check passed
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.

if JSONLD is array of objects, its metadata are not processed
2 participants