Google does not correctly merge microdata and json+ld in the same page using same URI id

后端 未结 2 1838
广开言路
广开言路 2020-12-06 22:29

I have a product page with \"microdata\" and \"json+ld\" codes. Both of the codes refers to the same @id URI object (http://www.example.org/product#this) so I would expect t

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-06 23:12

    My guess would be that Google’s Structured Data Testing Tool doesn’t support this for different syntaxes, as it seems to work if using the same syntax. But as they still display the URIs correctly (http://www.example.org/product#this in both cases), you could argue that it’s just the tool’s interface that doesn’t merge them.
    However, as far as I know Google does not document to support these subject URIs anyway (but this doesn’t necessarily mean that they don’t support it), so it might not matter for them.

    Your example works fine if using http://linter.structured-data.org/: it creates one item with both brands and both offers.

提交回复
热议问题