W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2009

[whatwg] Annotating structured data that HTML has no semantics for

From: Simon Pieters <simonp@opera.com>
Date: Mon, 11 May 2009 09:32:38 +0200
Message-ID: <op.utq8klgfidj3kv@simon-pieterss-macbook.local>
On Sun, 10 May 2009 12:32:34 +0200, Ian Hickson <ian at hixie.ch> wrote:

>    Page 3:
>    <h2>My Cats<h2>
>    <dl>
>     <dt>Schr&ouml;dinger
>     <dd item="com.damowmow.cat">
>      <meta property="com.damowmow.name" content="Schr&ouml;dinger">
>      <meta property="com.damowmow.age" content="9">
>      <p property="com.damowmow.desc">Orange male.
>     <dt>Erwin
>     <dd item="com.damowmow.cat">
>      <meta property="com.damowmow.name" content="Lord Erwin">
>      <meta property="com.damowmow.age" content="3">
>      <p property="com.damowmow.desc">Siamese color-point.
>      <img property="com.damowmow.img" alt="" src="/images/erwin.jpeg">
>    </dl>

Given the microdata solution and this example, there is now a reason other than styling to introduce <di>, since here you duplicate the <dt> information in <meta>.

   <dl>
    <di item="com.damowmow.cat">
     <dt property="com.damowmow.name">Schr&ouml;dinger
     <dd>
      <meta property="com.damowmow.age" content="9">
      <p property="com.damowmow.desc">Orange male.
    </di>
    ...


The styling problem is discussed at http://forums.whatwg.org/viewtopic.php?t=47

-- 
Simon Pieters
Opera Software
Received on Monday, 11 May 2009 00:32:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:49 UTC