Re: [VE][html5] The itemprop attribute was specified, but the element is not a property of any item
Shane McCarron <[email protected]>
| Newsgroups | gmane.org.w3c.validator |
|---|---|
| Message-ID | <CAOk_reGmyihqmfTjCMvoUP=Ja8eybpFE+dU2GPyRULSdCWdkWw@mail.gmail.com> |
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" <[email protected]> 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 > > >