Microformat Shiv

A light weight cross browser JavaScript Microformats parser

tag Example

Below is an example of the Microformat Shiv parsing a tag. This microformat is used to describe a hyperlinks relationship to a "tag" (keyword/subject) which it is pointing to. It is used both within other microformats structures and as a stand alone format. .

Code to parse the tag

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