W3C home > Mailing lists > Public > public-html@w3.org > November 2011

Re: noted 3 issues re: time/data (was Re: minutes for HTML WG f2f, 2011-11-04, part 1)

From: Marat Tanalin | tanalin.com <mtanalin@yandex.ru>
Date: Mon, 14 Nov 2011 12:49:33 +0400
To: Tab Atkins Jr. <jackalmage@gmail.com>
Cc: (wrong string) Çelik <tantek@cs.stanford.edu>, Sam Ruby <rubys@intertwingly.net>, public-html@w3.org
Message-Id: <16181321260573@web13.yandex.ru>


14.11.2011, 12:23, "Tab Atkins Jr." <jackalmage@gmail.com>:
> On Mon, Nov 14, 2011 at 12:09 AM, Marat Tanalin | tanalin.com
> <mtanalin@yandex.ru> wrote:

>> šLet's consider an example:
>> š<data itemprop="foo" value="bar">ipsum</data>
>>
>> šIt's unclear why this is not sufficient instead:
>> š<span itemprop="foo" value="bar">ipsum</span>
>
> Please tell me what the value of the "foo" property is on the following element:
>
> <span itemprop="foo" itemvalue="bar" itemscope>
>
> Is it the string "bar"? šOr is it the Microdata item started on the element?

AFAIK, there is no 'itemvalue' html attribute in the current spec. Then what does it mean in your example?

If to consider syntax with 'itempropvalue' attribute (as I've mentioned earlier and in the bug 14679 comment 3):

<span itemprop="foo" itempropvalue="bar" itemscope>

or CSS-like one I've proposed later:

<span itemprop="foo: bar" itemscope>

then 'bar' is obviously value of this span as property.

> Microdata already has three places that a value can possible come from
> - the textual content, the value of an attribute on certain elements,
> and the Microdata item started on the element. šThere's a somewhat
> intuitive ordering to these, but it's still right on the border of
> being too complex for its own good.

Then, microdata part of the spec probably should be simplified. In particular (but not limited to), it may make sense to disallow specifying 'itemscope' and 'itemprop' for the same element simultaneously (if it's currently really allowed).
Received on Monday, 14 November 2011 08:50:09 UTC

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