bryckbost / michromeformats

A Chrome extension to display microformats on a page
http://ryckbost.com/blog/archives/2010/04/21/chrome-microformats-michromeformats/
MIT License
42 stars 10 forks source link

Multiple vEvents broken with location properties set #9

Open aspencer opened 13 years ago

aspencer commented 13 years ago

When you include the 'location' property on a list of events, the extension only displays the first one.

Example: http://grasshopperinn.co.uk/whats-on

bryckbost commented 13 years ago

The first location or the first event?

aspencer commented 13 years ago

Only the first event. Sorry for being unclear.

In The example above (not my code but a decent example), if you use the Google Rich Snippets Testing Tool (http://www.google.com/webmasters/tools/richsnippets?url=http%3A%2F%2Fgrasshopperinn.co.uk%2Fwhats-on&view=), 3 events are displayed instead of the 1 from michromeformats.

The locations in the example are using hcards as their location fields, but I can confirm with my code (not live yet) that the same thing is happening from "vanilla" locations. Hope this helps.

martinbean commented 12 years ago

I think I have a related issue: it seems the location element is not being parsed properly. In my mark-up, I have the following:

<p class="location">Malaga, Spain</p>

But it, and any other location elements, don't seem to be getting parsed correctly, as when I use the extension to export to Google Calendar, the entry in my Calendar is [object Object] and not "Malaga, Spain" as would be expected.