Microformat Shiv

A light weight cross browser JavaScript Microformats parser

hAtom Example

Below is an example of the Microformat Shiv parsing a hAtom. hAtom is a microformat for content that can be syndicated, primarily but not exclusively weblog postings. hAtom is based on a subset of the Atom syndication format. The definition used by Microformat Shiv needs futher development and does not yet fully conform to the wiki specification.

Wiki Attack
We had a bit of trouble with ...
We’ve restored the wiki and ...
If anyone is working to combat said spammers ...

Technorati Tags:

Code to parse the hAtom

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