h
h copied to clipboard
JSON LD schema.org metadata invalid on pages that integrate the client
Description
Google Search Console detected the following error
Unparsable structured data Parsing error: Missing ',' or '}'
2 articles are impacted:
https://elifesciences.org/articles/16415 https://elifesciences.org/articles/13764
16415:
},
"headline": "<hypothesis-highlight class="hypothesis-highlight other-content">Ancient origin of lubricated joints in bony vertebrates</hypothesis-highlight>",
"datePublished": "2016-07-19",
"author": [
13664:
"headline": "<hypothesis-highlight class="hypothesis-highlight other-content">Distinct roles of visual, parietal, and frontal motor cortices in memory-guided sensorimotor decisions</hypothesis-highlight>",
"datePublished": "2016-08-04",
"author": [
I suspect that something in the hypothesis client code is creating this bug. For our purpose we strip tags out of the headline value but you will certainly want to escape the string.