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

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