Add support for @itemprop="mainEntity" top-level items#1
Add support for @itemprop="mainEntity" top-level items#1timvdalen wants to merge 1 commit intobrick:mainfrom
Conversation
|
Hi, thanks for your PR! Currently: With your PR: My remarks:
|
|
Thanks for your remarks! It's quite possible I've overlooked something or the page I'm testing this against isn't standards compliant. Before, the I will take some time tomorrow to test this against both my example and the example HTML code on schema.org and get back to you on your remarks. |
|
Indeed; the difference is that the example I'm using, the Here is the example from DetailsCurrently, this library doesn't detect any Things in the given snippet, while I think it should. With that out of the way, I agree that the output for the example you've posted is also not what we want.
I am happy to update this PR to do either - what do you think is best here? |
An entity with
@itemprop="mainEntity"is also a top-level entity (the primary entity described in the page), per: https://schema.org/mainEntityIf this is not something you want to support in the library, let me know and I'll add a (private) fork to our package repo instead.