[microformats-discuss] A 10 line script to identify and process
any microformat
Bud Gibson
bud at thecommunityengine.com
Sun Jul 31 18:31:20 PDT 2005
On Jul 31, 2005, at 21:00, Mark Rickerby wrote:
> Sorry, I could have been more clear on that: IE doesn't support XPath
> in javascript / DOM queries.
>
Yes, I did research on this. Well, as it turns out, Dimitri Glazkov
has produced a little javascript library here:
http://glazkov.com/blog/archive/2004/04/06/168.aspx
It basically adds the Mozilla XPATH functionality to IE. The IE
version is less efficient than Mozilla though and sometimes fails,
suggesting another approach is likely best for IE.
In that regard, Danny Goodman has produced some code in his
javascript dhtml cookbook that can create arrays of nodes by matching
attribute values. It is compact and general, with some need of
modification for the microformats case.
I've updated the wiki to reflect some of this.
I think we have the conceptual wherewithal to put together a cross-
platform tutorial (where the platforms are IE and Firefox) on easy
microformat identification.
Bud
More information about the microformats-discuss
mailing list