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

[whatwg] Extensible microdata attributes

From: Brett Zamir <brettz9@yahoo.com>
Date: Tue, 26 Apr 2011 21:32:39 +0800
Message-ID: <4DB6C977.2020103@yahoo.com>
  On 4/26/2011 9:22 PM, Benjamin Hawkes-Lewis wrote:
> On Tue, Apr 26, 2011 at 11:48 AM, Brett Zamir<brettz9 at yahoo.com>  wrote:
>>   On 4/26/2011 5:33 PM, Benjamin Hawkes-Lewis wrote:
>>> On Tue, Apr 26, 2011 at 7:36 AM, Brett Zamir<brettz9 at yahoo.com>    wrote:
>>>> This would prevent the need for such ugly hacks as:
>>>>
>>>> <span id="UnitedNations" style="display:none;" itemprop="orgName"
>>>> item-placeName="New York">United Nations</span>
>>>> ...
>>>> <blockquote itemscope="itemscope" itemtype="http://www.tei-c.org/ns/1.0">
>>>> <span itemprop="who" style="display:none;">#United_Nations</span>
>>>>     We the Peoples of the United Nations determined to save succeeding
>>>> generations from the scourge of war, which twice in our lifetime has
>>>> brought
>>>> untold sorrow to mankind...
>>>> </blockquote>
>>>>
>>>> For the latter portion, one could instead just do:
>>>>
>>>> <blockquote itemscope="itemscope" itemtype="http://www.tei-c.org/ns/1.0"
>>>> item-who="#United_Nations">
>>>>     We the Peoples of the United Nations determined to save succeeding
>>>> generations from the scourge of war, which twice in our lifetime has
>>>> brought
>>>> untold sorrow to mankind...
>>>> </blockquote>
>>> I'm confused by your examples. What extractable statement are you trying
>>> to
>>> markup with microdata here? Is it: "the United Nations is in New York"?
>> That was one part, but I was mostly focusing on the quotation indicating
>> that it was by the United Nations (which is an organization in New York). It
>> is using a special attribute (in this case "item-who") rather than defining
>> a (hidden) property-value child element (with itemprop="who").
> So the extractable data is: "the United Nations is the source of the
> quotation 'We the Peoples of the United Nations determined to save
> succeeding generations from the scourge of war, which twice in our
> lifetime has brought untold sorrow to mankind...'"?
>
> Microdata (like microformats) is supposed to encourage visible data rather
> than hidden metadata. Both your markup examples seem to express
> authorship of the quotation through hidden metadata.
That's kind of my purpose though. Sometimes, one does not wish to embed 
the text itself, but one still wishes the data encoded so it can be 
retrieved by other means. Why should extensible semantics be restricted 
to visible information?

Brett
Received on Tuesday, 26 April 2011 06:32:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:03 GMT