有没有办法将标记作为 schema.org itemprop 的值?

Is there a way to have markup as the value to schema.org itemprop?

有没有办法将标记作为 schema.org itemprop 节点的值?例如。这有效:

<div itemscope itemtype ="http://schema.org/Movie">
  <h1 itemprop="name">Avatar</h1>
  <span>Director: <span itemprop="director">James Cameron</span> (born August 16, 1954)</span>
  <span itemprop="genre">Science fiction</span>
  <a href="../movies/avatar-theatrical-trailer.html" itemprop="trailer">Trailer</a>
</div>

但是你能做到吗:

<div itemscope itemtype ="http://schema.org/Movie">
  <h1 itemprop="name">Avatar</h1>
  <span>Director: <span itemprop="director">James Cameron</span> (born August 16, 1954)</span>
  <span itemprop="genre"> <p>Science</p> <h2>fiction</h2></span>      <<====
  <a href="../movies/avatar-theatrical-trailer.html" itemprop="trailer">Trailer</a>
</div>

HTML 规范 defines what the property value is of an element with an itemscope attribute,它针对 metaaudioembediframeimg, source, track, video, a, area, link, object, data, meter, or time, “值为元素的textContent”.

因此 HTML 规范要求微数据标记的消费者忽略 <span itemprop="genre"> <p>Science</p> <h2>fiction…span 元素内的标记,只使用文本。