W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2011

[whatwg] multiple itemtypes in microdata?

From: Lin Clark <lin.w.clark@gmail.com>
Date: Tue, 28 Jun 2011 20:12:19 +0100
Message-ID: <BANLkTik=oa-M3b84sanOc+Rqwk36a304+w@mail.gmail.com>
On Tue, Jun 28, 2011 at 6:53 PM, Ian Hickson <ian at hixie.ch> wrote:
>   <div itemscope itemtype="http://example.com/">
>     <meta itemprop="kind" content="A B">
>     ...
>   </div>

Would it make sense to use something like vocab here?

    <div itemscope vocab="http://example.com/" itemtype="A B http://C">

I know that it's a problem for consumers if the vocabulary can be redefined
throughout the document, but I think that wouldn't be an issue if:

   - vocab could only be used with itemscope
   - vocab was not inherited from parent to child, but had to be explicitly
   defined on an item in order to read the itemtype and itemprops as
   universally defined terms

In this way, it would act very similarly to itemtype in the complexity of
processing, I would think, but it would make clear in which vocab the
properties were defined and would allow the use of multiple itemtypes from
multiple vocabs.


Lin Clark
DERI, NUI Galway <http://www.deri.ie/>

Received on Tuesday, 28 June 2011 12:12:19 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:34 UTC