[microformats-discuss] Pure JavaScript Greasemonkey hCard parser
Mark Pilgrim
pilgrim at gmail.com
Thu Sep 15 14:53:19 PDT 2005
http://diveintomark.org/projects/greasemonkey/hcard/hcard.user.js
This is a pure client-side user script; it does not call Brian's
excellent X2V service.
The parser passes all of these tests:
http://diveintomark.org/projects/greasemonkey/hcard/tests/
The user script contains a simple XHTML-driven unit testing harness.
Install the script and load this page:
http://diveintomark.org/projects/greasemonkey/hcard/tests/0-start-unit-tests.xhtml
Tested with Greasemonkey 0.6.2 (unreleased) + Firefox 1.5 beta 1, and
Greasemonkey 0.5.3 + Firefox 1.0.6.
(coming soon: rel="test" microformat spec)
The script doesn't actually do anything useful with the vCards (other
than log them to the JavaScript Console window), but I have big plans
for this little script. Big. Plans.
--
Cheers,
-Mark
More information about the microformats-discuss
mailing list