hCard Example
Below is an example of the Microformat Shiv parsing a hCard. This microformat is used to describe contact information and is based on the vCard standard used in most email and office software. You can check the compliance of the Microformat Shiv to the hCard standard on the microformats test suite.
Glenn Jones
Madgex, Creative Director
- +44 (0)1273 123456 work
- +44 (0)7966 123456 cell
work Suite 1 Clarence House 30-31 North Street Brighton East Sussex United Kingdom BN1 1EB
Website: http://www.madgex.com/
Commonly used username: glennjones
Code to parse the hCard
var domNode = document.getElementById('hcard-example');
var jsonObject = navigator.microformats.get('hCard', domNode);
alert(JSON.stringify(jsonObject));
Follow my twitter account for updates: @glennjones