schema.org/Article
Google のStructured Data Testing Toolに対してを検証しようとしたときに、SVG 画像を指定するとエラーが発生することに気付きました。
ロゴに指定する値は、有効な URL でなければなりません。
必須:
AMP 記事 (これは何ですか? )
URL がではなく.png
(または.jpg
、.bmp
、など) の拡張子を持つように変更された場合、検証に合格します。.webp
.svg
これが私が取り組んでいる例です:
<div itemscope itemtype="http://schema.org/Article">
<div itemprop="publisher" itemscope itemtype="https://schema.org/Organization">
<meta itemprop="name" content="Example" />
<meta itemprop="url" content="http://example.com" />
<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="http://example.com/logo.svg" />
<meta itemprop="width" content="600" />
<meta itemprop="height" content="60" />
</div>
</div>
<meta itemprop="dateModified" content="2016-01-05T12:43" />
<meta itemprop="datePublished" content="2016-01-05T12:43" />
<meta itemprop="headline" content="Example" />
<meta itemprop="name" content="Example" />
<meta itemprop="author" content="Example" />
<link itemprop="mainEntityOfPage" href="http://example.com/article" />
<div itemprop="image" itemscope itemtype="https://schema.org/ImageObject">
<meta itemprop="url" content="http://example.com/article.jpg" />
<meta itemprop="width" content="1200" />
<meta itemprop="height" content="800" />
</div>
</div>
他の画像の URL の拡張子を変更すると、エラーが発生します。
リッチ スニペットのドキュメントまたはAMP HTML 仕様で SVG を拒否する理由に関する情報を見つけることができませんでした。この動作について誰か説明がありますか?