There have been some minor updates to the OPML JavaScript Object Model. I have added support for an OPML Attribute which are attached to an Outline. This was done so that it is much more flexible and allows developers to add proper attribute combinations to an Outline. Furthermore, I borrowed an instanceOf method from some site (if you know the site let me know) which enforce some sort of type checking when inserting OPMLOutlineAttributes to the attribute array.
The javascript I borrowed was this:function instanceOf(object, constructor) while (object != null) { if (object == constructor.prototype) return true; object = object.proto; } return false; }
1 min read
OPML JavaScript Object Model Updates
Paul Kinlan
Lead of Chrome DevRel
See Also
Stay in the loop.
I'm trialing a newsletter. Join for monthly insights into web dev, Chrome, and the open web.