<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15975</bug_id>
          
          <creation_ts>2012-02-13 17:13:06 +0000</creation_ts>
          <short_desc>Incorrectly identified microdata as invalid</short_desc>
          <delta_ts>2012-03-20 04:46:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Worent">jonathan</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>mike</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64039</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Worent">jonathan</who>
    <bug_when>2012-02-13 17:13:06 +0000</bug_when>
    <thetext>The spec at WHAT WG relating to microdata allows &apos;idemprop&apos; attribute on &lt;img&gt; and &lt;a&gt;: http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html#microdata

Specifically: 
&quot;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, &quot;image&quot;, whose value is a URL:

&lt;div itemscope&gt;
 &lt;img itemprop=&quot;image&quot; src=&quot;google-logo.png&quot; alt=&quot;Google&quot;&gt;
&lt;/div&gt;&quot;


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.



&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div itemscope itemtype=&quot;http://schema.org/Person&quot;&gt;
      &lt;span itemprop=&quot;name&quot;&gt;Jane Doe&lt;/span&gt;
      &lt;img src=&quot;janedoe.jpg&quot; itemprop=&quot;image&quot; /&gt;

      &lt;span itemprop=&quot;jobTitle&quot;&gt;Professor&lt;/span&gt;
      &lt;div itemprop=&quot;address&quot; itemscope itemtype=&quot;http://schema.org/PostalAddress&quot;&gt;
        &lt;span itemprop=&quot;streetAddress&quot;&gt;
          20341 Whitworth Institute
          405 N. Whitworth
        &lt;/span&gt;
        &lt;span itemprop=&quot;addressLocality&quot;&gt;Seattle&lt;/span&gt;,
        &lt;span itemprop=&quot;addressRegion&quot;&gt;WA&lt;/span&gt;
        &lt;span itemprop=&quot;postalCode&quot;&gt;98052&lt;/span&gt;
      &lt;/div&gt;
      &lt;span itemprop=&quot;telephone&quot;&gt;(425) 123-4567&lt;/span&gt;
      &lt;a href=&quot;mailto:jane-doe@xyz.edu&quot; itemprop=&quot;email&quot;&gt;
        jane-doe@xyz.edu&lt;/a&gt;

      Jane&apos;s home page:
      &lt;a href=&quot;www.janedoe.com&quot; itemprop=&quot;url&quot;&gt;janedoe.com&lt;/a&gt;

      Graduate students:
      &lt;a href=&quot;www.xyz.edu/students/alicejones.html&quot; itemprop=&quot;colleagues&quot;&gt;
        Alice Jones&lt;/a&gt;
      &lt;a href=&quot;www.xyz.edu/students/bobsmith.html&quot; itemprop=&quot;colleagues&quot;&gt;
        Bob Smith&lt;/a&gt;
    &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;



I&apos;m not 100% certain if this is an issue with the validator or the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65798</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-03-20 04:46:42 +0000</bug_when>
    <thetext>This microdata part of this validates now (though to get it to validate you&apos;d need to also add an alt to that img).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>