- From: <bugzilla@jessica.w3.org>
- Date: Mon, 13 Feb 2012 17:13:07 +0000
- To: www-validator-cvs@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15975
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>:
http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html#microdata
Specifically:
"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">
</div>"
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>
<html>
<head>
<title></title>
</head>
<body>
<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
itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">
20341 Whitworth Institute
405 N. Whitworth
</span>
<span itemprop="addressLocality">Seattle</span>,
<span itemprop="addressRegion">WA</span>
<span itemprop="postalCode">98052</span>
</div>
<span itemprop="telephone">(425) 123-4567</span>
<a href="mailto:jane-doe@xyz.edu" itemprop="email">
jane-doe@xyz.edu</a>
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>
</div>
</body>
</html>
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