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.


<html xmlns="http://www.w3.org/1999/xhtml" item="http://ogp.me/ns#Article">
  <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>For more details see:
  <a itemprop="url" href="http://www.w3.org/TR/html5/microdata.html">
Received on Thursday, 28 October 2010 12:31:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:27 UTC