Microformat Shiv

A light weight cross browser JavaScript Microformats parser

adr Example

Below is an example of the Microformat Shiv parsing an adr. This microformat is used to describe address information and is based on the vCard standard for addresses. It is most commonly used within other microformats structures rather than as a stand alone format.

work
Suite 1
Clarence House
30-31 North Street
Brighton
East Sussex
United Kingdom
BN1 1EB

Code to parse the adr

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