W3C home > Mailing lists > Public > public-html-comments@w3.org > October 2010

Microdata: itemtype without itemscope

From: Monica Wilkinson <monica.keller@gmail.com>
Date: Mon, 25 Oct 2010 00:22:21 -0700
Message-ID: <AANLkTikmkhPx=2Lb3_w6dra5g5+QkvE8j5RzznhNB2YA@mail.gmail.com>
To: public-html-comments@w3.org
I believe it will be good to consolidate itemscope and itemtype into a
single attribute "item" which can either have no value or the type as
itemtype does today

Some parsers including the current W3C validator, have trouble with with
itemscope having no value and since

>> The itemtype attribute must not be specified on elements that do not have
an itemscope attribute specified.

We really don't need both. See this example where I used the Open Graph
Vocabulary with Microdata.

http://pastie.org/1246677


<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" item="http://ogp.me/ns#Article">
<head>
<title>Microdata</title>
</head>
<body>
  <img src="http://www.w3.org/Icons/w3c_home" itemprop="image"/>
  <h1 itemprop="title">Microdata</h1>
  <p itemprop="description">
  A vocabulary and associated APIs for HTML and XHTML.
  </p>
  <p>For more details see:
  <a itemprop="url" href="http://www.w3.org/TR/html5/microdata.html">
http://www.w3.org/TR/html5/microdata.html</a></p>
</body>
</html>
Received on Thursday, 28 October 2010 12:31:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 00:14:05 GMT