[microformats-discuss] Pure JavaScript Greasemonkey hCard parser

Ryan King ryan at technorati.com
Thu Sep 15 15:06:53 PDT 2005


On Sep 15, 2005, at 2:53 PM, Mark Pilgrim wrote:

> http://diveintomark.org/projects/greasemonkey/hcard/hcard.user.js

Cool.

> 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/

See also: http://microformats.org/wiki/selected-test-cases-from-the-web

And, BTW, does anyone want to work on collecting test cases?

> 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.

Big, eh? I'm looking forward to those.

-ryan




More information about the microformats-discuss mailing list