W3C home > Mailing lists > Public > public-vocabs@w3.org > December 2011

Re: Syntax for itemprop breadcrumb

From: Aaron Bradley <aaranged@yahoo.com>
Date: Fri, 16 Dec 2011 15:30:44 -0800 (PST)
Message-ID: <1324078244.63546.YahooMailNeo@web161003.mail.bf1.yahoo.com>
To: Tim van Oostrom <tim@depulz.nl>, "public-vocabs@w3.org" <public-vocabs@w3.org>


Thanks for weighing in, Tom.

In this case, though, all the examples explicitly show all breadcrumb links belonging to one itemprop - what they omit is an additional, unlinked "breadcrumb" component.

See on http://schema.org/WebPage:

<div itemprop="breadcrumb">
  <a href="category/books.html">Books</a> >
  <a href="category/books-literature.html">Literature & Fiction</a> >
  <a href="category/books-classics">Classics</a>
</div>


By the way, the separate page identifier in the <h1> I wouldn't have a problem handling (it's not a breadcrumb) - it's the additional component on the same line.  E.g. (and this is the syntax I'm leaning towards - *not* including the unlinked item in the breadcrumb declaration):


<div>

<span itemprop="breadcrumb">
  <a href="category/books.html">Books</a> >
  <a href="category/books-literature.html">Literature & Fiction</a> >
  <a href="category/books-classics">Classics</a></span> >
  Boring Classics
</div>
<h1>Boring Classics</h1>


----- Original Message -----
> From: Tim van Oostrom <tim@depulz.nl>
> To: public-vocabs@w3.org
> Cc: 
> Sent: Friday, December 16, 2011 2:26:37 PM
> Subject: Re: Syntax for itemprop breadcrumb
> 
> Hi Aaron,
> I personally interpreted breadcrumb like:
> 
> <div itemscope itemtype="http://schema.org/Thing";>
>    <a href="category/books.html" 
> itemprop="breadcrumb">Books</a>  >
>    <a href="category/books-literature.html" 
> itemprop="breadcrumb">Literature&  Fiction</a>  >
>    <a href="category/books-classics" 
> itemprop="breadcrumb">Classics</a>  >
>    Boring Classics
> <h1 itemprop="name">Boring Classics</h1>
>   </div>
> 
> 
> 1 breadcrumb per Item/Link (semantically more obvious and less work to 
> determine what is what?)
> 
> You'd have a list of breadcrumb(s). This should however be an ordered list.
> 
> - Tim
> 
>>  In breadcrumb display, the unlinked current page or section is often 
> displayed in the same line as the linked parents.  E.g.:
>> 
>>  <div><a href="/">Home</a>  | About 
> us</div>
>> 
>>  Should this unlinked portion be ("About us" in the example above) 
> be included in the breadcrumb itemprop or excluded from it? 1 or 2 below?
>> 
>> 
>>  1 - Unlinked portion part of breadcrumb itemprop
>> 
>>  <div itemprop="breadcrumb">
>>     <a href="category/books.html">Books</a>  >
>>     <a 
> href="category/books-literature.html">Literature&  
> Fiction</a>  >
>>     <a href="category/books-classics">Classics</a>  
>> 
>>     Boring Classics
>>  </div>
>> 
>>  2 - Unlinked portion not a part of breadcrumb itemprop
>> 
>>  <div>
>>  <span itemprop="breadcrumb">
>>     <a href="category/books.html">Books</a>  >
>>     <a 
> href="category/books-literature.html">Literature&  
> Fiction</a>  >
>>     <a 
> href="category/books-classics">Classics</a></span>  
>> 
>>     Boring Classics
>>  </div>
>> 
>>  None of the schema.org examples show this use case.
>> 
>>  See also this same question on a G+ post - feel free to comment there.
>>  https://plus.google.com/106943062990152739506/posts/Bf5ZYWkVtM1
>> 
>>  Thanks,
>>  Aaron
>> 
>> 
>> 
> 
Received on Friday, 16 December 2011 23:31:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:29:21 UTC