Skip to main content
Question Protected by Stephen Ostermiller
added 6 characters in body; edited tags; edited title
Source Link
unor
  • 21.9k
  • 3
  • 47
  • 118

NewsArticle not validing: "The attribute image.width has an invalid value."

I'm using Google's template to mark up my blog and it seems that if I were to change the value of the widthwidth/heightheight, it instantly tells me:

The attribute image.width has an invalid value.

The attribute image.width has an invalid value.

The following is a template that Google has provideprovided:

The followfollowing source code is what I have changed:

Is is a bug from Google? Or am I just really lost.?

NewsArticle not validing

I'm using Google's template to mark up my blog and it seems that if I were to change the value of the width/height, it instantly tells me:

The attribute image.width has an invalid value.

The following is a template that Google has provide:

The follow source code is what I have changed:

Is is a bug from Google? Or am I just really lost.

NewsArticle not validing: "The attribute image.width has an invalid value."

I'm using Google's template to mark up my blog and it seems that if I were to change the value of the width/height, it instantly tells me:

The attribute image.width has an invalid value.

The following is a template that Google has provided:

The following source code is what I have changed:

Is is a bug from Google? Or am I just really lost?

Source Link
Yen Deng
  • 173
  • 2
  • 7

NewsArticle not validing

I'm using Google's template to mark up my blog and it seems that if I were to change the value of the width/height, it instantly tells me:

The attribute image.width has an invalid value.

The following is a template that Google has provide:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "NewsArticle",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://google.com/article"
  },
  "headline": "Article headline",
  "image": {
    "@type": "ImageObject",
    "url": "https://google.com/thumbnail1.jpg",
    "height": 800,
    "width": 800
  },
  "datePublished": "2015-02-05T08:00:00+08:00",
  "dateModified": "2015-02-05T09:20:00+08:00",
  "author": {
    "@type": "Person",
    "name": "John Doe"
  },
   "publisher": {
    "@type": "Organization",
    "name": "Google",
    "logo": {
      "@type": "ImageObject",
      "url": "https://google.com/logo.jpg",
      "width": 600,
      "height": 60
    }
  },
  "description": "A most wonderful article"
}
</script>

The follow source code is what I have changed:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "NewsArticle",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://google.com/article"
  },
  "headline": "Article headline",
  "image": {
    "@type": "ImageObject",
    "url": "https://google.com/thumbnail1.jpg",
    "height": 800,
    "width": **600**
  },
  "datePublished": "2015-02-05T08:00:00+08:00",
  "dateModified": "2015-02-05T09:20:00+08:00",
  "author": {
    "@type": "Person",
    "name": "John Doe"
  },
   "publisher": {
    "@type": "Organization",
    "name": "Google",
    "logo": {
      "@type": "ImageObject",
      "url": "https://google.com/logo.jpg",
      "width": 600,
      "height": 60
    }
  },
  "description": "A most wonderful article"
}
</script>

Is is a bug from Google? Or am I just really lost.