Re: Extension syntax Was: Re: Updated Example

On Wed, Feb 27, 2013 at 3:41 PM, Karen Coyle <kcoyle@kcoyle.net> wrote:
> On 2/25/13 6:11 AM, Jason Ronallo wrote:
>
>> It is fine to include the span, but note that a conformant Microdata
>> processor does nothing with the span. It would not associate the text
>> of the span with the meta property and value in any way.
>> Also in HTML5 elements like <meta> and <link> are void elements [1]
>> and only have a start tag, so they do not have to include the
>> self-closing slash.
>>
>
> Jason,
>
> If the microdata processor will not use the span, then we should go back to
> the simple itemprop + type=text, because the display is key. I ran some
> examples through the Google microdata validation, and the "content" will be
> displayed, thus
>
> <meta itemprop="abridged" content="true">
>
> will display as "true", which is what we were trying to avoid.

What will display as "true" where? The meta element does not display
to a user at all. It is still OK to write it as the following:

<meta itemprop="abridged" content="true">Abridged

Any text you want can be displayed next to (or not next to) the text
"Abridged". There are lots of examples where meta or link elements are
used to convey the data while text is still displayed on the page for
humans.

Then the consumer of the data would then know to expect a Boolean
value for the abridged property. A conformant Microdata processor for
instance would not see the text "Abridged", but it does not have to to
understand the meaning from the meta element. The consumer could
display the data (abridged=true) however it wanted to.

The point of using the value of "true" here is that ISSUE-14 suggests
that processors would know to treat the "true" value as a
http://schema.org/True value, and that this solution for simple
booleans works for both RDFa Lite and Microdata. The issue hasn't been
resolved, but it appears to be a good solution.

Or am I missing a requirement of the abridged property where it is not
a simple boolean, either abridged or unabridged?

Jason

Received on Saturday, 2 March 2013 00:20:59 UTC