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

Re: Microdata: The Itemref element

From: Philip Jägenstedt <philipj@opera.com>
Date: Mon, 19 Oct 2009 13:42:08 +0200
To: "Olivier GENDRIN" <olivier.gendrin@gmail.com>, "Nicholas Stimpson" <nicholas.stimpson@ntlworld.com>
Cc: public-html@w3.org
Message-ID: <op.u11pgibhatwj1d@sisko.linkoping.osa>
On Mon, 19 Oct 2009 13:20:07 +0200, Olivier GENDRIN  
<olivier.gendrin@gmail.com> wrote:

> On Sun, Oct 18, 2009 at 9:18 PM, Nicholas Stimpson
> <nicholas.stimpson@ntlworld.com> wrote:
>> Take this example from the draft:
>>
>> <div itemscope>
>> <itemref refid="x">
>> <p itemprop="b">test</p>
>> <p itemprop="a">2</p>
>> </div>
>> <div id="x">
>> <p itemprop="a">1</p>
>> </div>
>
> Ho, I have an even more problematic example in mind :
>
> <table>
>   <tbody>
>     <tr>
>       <itemref refid="x">
>         <td itemprop="b">test</td>
>         <td itemprop="a">2</td>
>       </itemref>
>     </tr>
>     <!-- repeat scheme -->
>   </tbody>
> </table>
> <div id="x"><p itemprop="a">1</p></div>
> <!-- repeat scheme -->

I'm not sure I'm getting the problematic part, but a property can have  
multiple values, which is why  
HTMLPropertyCollection.namedItem('propname').values is an array rather  
than a single value. [1] If you mean that id="x" should be repeated, only  
the first such element is used.

[1]  
http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#htmlpropertycollection

-- 
Philip Jägenstedt
Core Developer
Opera Software
Received on Monday, 19 October 2009 11:42:50 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:09 UTC