W3C home > Mailing lists > Public > www-validator@w3.org > September 2014

Re: [VE][html5] The itemprop attribute was specified, but the element is not a property of any item

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 05 Sep 2014 11:47:33 +0300
Message-ID: <540978A5.8090109@cs.tut.fi>
To: Sanjeev Verma <sverma@myzealit.com>, www-validator@w3.org
CC: sherry@myzealit.com, 'Pintu Prasad' <pprasad@myzealit.com>
2014-09-04 10:43, Sanjeev Verma wrote:

> While validating our website http://14.141.108.213:93/ we received error
> “The itemprop attribute was specified, but the element is not a property
> of any item”

The experimental HTML5 validator checks against a vaguely defined 
collection of drafts and notes, apparently including “HTML Microdata”,
which defines the itemprop attribute (which is not present at all in W3C 
HTML5 CR). It defines the attribute so that it is allowed on any element 
“if doing so adds one or more properties to one or more items”, with 
“items” as a link to a desciption of the itemscope attribute.
Ref.: http://www.w3.org/TR/microdata/#names:-the-itemprop-attribute

Thus, itemprop is allowed only if an ancestor element has the itemscope 
attribute. In your case, the simplest fix is to add that attribute to 
the parent of your meta elements, the head element:

<head id="header1" itemscope>

Yucca
Received on Friday, 5 September 2014 08:48:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:11 UTC