W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2012

[Bug 15975] New: Incorrectly identified microdata as invalid

From: <bugzilla@jessica.w3.org>
Date: Mon, 13 Feb 2012 17:13:07 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-15975-169@http.www.w3.org/Bugs/Public/>

           Summary: Incorrectly identified microdata as invalid
           Product: Validator (Nu)
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: General
        AssignedTo: mike+validator@w3.org
        ReportedBy: jonathan@inspiredbytes.net
         QAContact: www-validator-cvs@w3.org

The spec at WHAT WG relating to microdata allows 'idemprop' attribute on <img>
and <a>:

"When a string value is a URLs, it is expressed using the a element and its
href attribute, the img element and its src attribute, or other elements that
link to or embed external resources.

In this example, the item has one property, "image", whose value is a URL:

<div itemscope>
 <img itemprop="image" src="google-logo.png" alt="Google">

Several of the microformat specifications/implementations at schema.org
recommend this. 

However, running the code example at http://www.schema.org/Person throws an
incorrect error.

<!DOCTYPE html>
    <div itemscope itemtype="http://schema.org/Person">
      <span itemprop="name">Jane Doe</span>
      <img src="janedoe.jpg" itemprop="image" />

      <span itemprop="jobTitle">Professor</span>
      <div itemprop="address" itemscope
        <span itemprop="streetAddress">
          20341 Whitworth Institute
          405 N. Whitworth
        <span itemprop="addressLocality">Seattle</span>,
        <span itemprop="addressRegion">WA</span>
        <span itemprop="postalCode">98052</span>
      <span itemprop="telephone">(425) 123-4567</span>
      <a href="mailto:jane-doe@xyz.edu" itemprop="email">

      Jane's home page:
      <a href="www.janedoe.com" itemprop="url">janedoe.com</a>

      Graduate students:
      <a href="www.xyz.edu/students/alicejones.html" itemprop="colleagues">
        Alice Jones</a>
      <a href="www.xyz.edu/students/bobsmith.html" itemprop="colleagues">
        Bob Smith</a>

I'm not 100% certain if this is an issue with the validator or the spec.

Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 13 February 2012 17:13:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:54 UTC