[whatwg] multiple itemtypes in microdata?

Lin Clark lin.w.clark at gmail.com
Tue Jun 28 12:12:19 PDT 2011

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/>


More information about the whatwg mailing list