lanthaler / JsonLD

JSON-LD processor for PHP
MIT License
335 stars 62 forks source link

Only first JSON+LD block is parsed #94

Closed michaelstivala closed 5 years ago

michaelstivala commented 6 years ago

When a webpage contains more than one <script type="javascript/json+ld"></script> block, only the first one is parsed.

This seems to be due to the break; (line 121) in the Jkphl\Micrometa\Infrastructure\Parser\JsonLD::parseDom method.

Removing that line seems to fix the issue.

michaelstivala commented 5 years ago

Apologies - this issue is clearly about the wrong repo!