Microformat Shiv

A light weight cross browser JavaScript Microformats parser

hReview Example

Below is an example of the Microformat Shiv parsing a hReview. This microformat is used to describe reviews of producst, businesses, events, people, places, websites and urls.

5 out of 5 stars

Crepes on Cole is awesome

Reviewer: Tantek - April 18, 2005

Crepes on Cole is one of the best little creperies in San Francisco. Excellent food and service. Plenty of tables in a variety of sizes for parties large and small. Window seating makes for excellent people watching to/from the N-Judah which stops right outside. I've had many fun social gatherings here, as well as gotten plenty of work done thanks to neighborhood WiFi.

Visit date: April 2005

Food eaten: Florentine crepe

Code to parse the hReview

var domNode = document.getElementById('hreview-example');
var jsonObject = navigator.microformats.get('hReview', domNode);
   
alert(JSON.stringify(jsonObject));