1 min read

OPML JavaScript Object Model Updates

Paul Kinlan

Paul Kinlan

Lead of Chrome DevRel

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; }

Stay in the loop.

I'm trialing a newsletter. Join for monthly insights into web dev, Chrome, and the open web.

alternate_email

Get in touch

Open to chat about Chrome or Web development.

Book a consultation