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: Shane McCarron <shane@aptest.com>
Date: Fri, 5 Sep 2014 05:42:48 -0500
Message-ID: <CAOk_reGmyihqmfTjCMvoUP=Ja8eybpFE+dU2GPyRULSdCWdkWw@mail.gmail.com>
To: "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Cc: sherry@myzealit.com, Sanjeev Verma <sverma@myzealit.com>, Pintu Prasad <pprasad@myzealit.com>, www-validator@w3.org
However you should be aware that support for itemprop will likely be
removed from the validator altogether since it is not actually valid HTML5.
On Sep 5, 2014 3:49 AM, "Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote:

> 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 10:43:17 UTC

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