How do I have an itemprop nested in one itemscope actually be applied to a different itemscope?

前端 未结 1 1518
终归单人心
终归单人心 2020-12-11 09:51

TL;DR --> I want an itemprop nested in one itemscope to actually be applied to a different itemscope. How do I do that?

Here\'s a a gist of the co

1条回答
  •  一个人的身影
    2020-12-11 10:19

    Assuming you mean you want it only attached to the Product, as per your penultimate paragraph, and not only attached the aggregateRating as per per your last paragraph, then the best I can come up is

    79

    Someproductsoandso

    830

    The itemscope on the h1 hides the h1's children from the aggregateRating item, so the name property will only be attached to the Product item via the productMicrodata itemref. It does however, create a third item which has no type.

    0 讨论(0)
提交回复
热议问题