W3C home > Mailing lists > Public > public-vocabs@w3.org > February 2012

Re: Breadcrumbs: Last Item Not Hyperlinked

From: Aaron Bradley <aaranged@yahoo.com>
Date: Tue, 14 Feb 2012 10:00:48 -0800 (PST)
Message-ID: <1329242448.2144.YahooMailNeo@web161002.mail.bf1.yahoo.com>
To: Irfanullah Jan <erfanullah.jan@gmail.com>, "public-vocabs@w3.org" <public-vocabs@w3.org>
Hi Jan,

There are known issues with the syntax displayed in the breadcrumbs example:
http://www.w3.org/2011/webschema/track/issues/10
http://www.w3.org/2011/webschema/track/actions/overdue

For what it's worth, here's the breadcrumb syntax I'm currently employing while we await clarification on the schema.org standard:

<body itemscope itemtype="http://schema.org/WebPage">

...
<p>
<a href="http://www.site.com/animals/" itemprop="breadcrumb">Animals</a></span> &gt; 

<a href="http://www.site.com/animals/dogs/" itemprop="breadcrumb">Dogs</a></span>

This is modeled on the data-vocabulary.org microdata syntax example on Google:
http://support.google.com/webmasters/bin/answer.py?hl=en&answer=185417
However, since the schema.org breadcrumb property lacks the data-vocabulary.org properties title, url or child, I've simply added the item property declaration to the <a> tag (while the schema.org expected type is "Text" the rich snippets testing tool doesn't seem to have a problem with this:
breadcrumb 

     text = Animals
     href = http://www.site.com/animals/
breadcrumb 

     text = Dogs
     href = http://www.site.com/animals/dogs/... though linter.structured-data.org shows only the URL.

Hope this helps, Aaron


>________________________________
> From: Irfanullah Jan <erfanullah.jan@gmail.com>
>To: public-vocabs@w3.org 
>Sent: Thursday, February 9, 2012 9:29:36 AM
>Subject: Breadcrumbs: Last Item Not Hyperlinked
> 
>
>Hi,
>
>
>I have currently marked up my breadcrumbs exactly as shown in the example on the following page:
>
>
>http://schema.org/WebPage
>
>
>However, I want to remove the <a> element from the last item, because I think it is unnecessary to link to current page.
>
>
>So I wanted to use the following markup, but I am not sure if it will be correctly interpreted bu search engines.
>
>
>
>
><body itemscope itemtype="http://schema.org/WebPage";>
>>...
>><div itemprop="breadcrumb">
>>  <a href="category/books.html">Books</a> >
>>  <a href="category/books-literature.html">Literature & Fiction</a> >
>>  Classics
>></div>
>>...
>></body>
>
>
>
>
>Please let me know if this is correct.
>
>
>Thanks
>Irfan
>
>
Received on Tuesday, 14 February 2012 18:01:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 06:48:59 GMT