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

[whatwg] Microdata getItems()

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 9 Aug 2011 19:48:54 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1108091947490.22648@ps20323.dreamhostps.com>
On Tue, 9 Aug 2011, Rob Crowther wrote:
> I just want to confirm that my understanding of this is correct: 
> getItems() will return a NodeList of top level microdata items and this 
> is irrespective of whether or not the items are actually valid in terms 
> of their type?  That is, it is the developer's responsibility to confirm 
> that the vCard has an fn and an n before further processing?

Correct. Browsers aren't expected to know about the vocabularies, let 
alone validate them.

> One further question - if an itemtype attribute is present there must 
> also be an itemscope.  However if I remove itemscope from the element 
> the Opera beta implementation still returns it as a top level microdata 
> item even though it is now invalid.  Is this expected behaviour?


Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 9 August 2011 12:48:54 UTC

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