O'Reilly logo

Rapid Application Development with Mozilla™ by Nigel McFarlane

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

12.4. Related AOM and XPCOM Objects

The overlay and chrome registry systems are implemented using these XPCOM features:

@mozilla.org/chrome/chrome-registry;1 nsIXULChromeRegistry

A few methods on this interface allow simple operations on the overlay system, but they don't allow the programmer to drive the overlay merging system by hand. There is little reason to use this interface, unless you are building a tool like the DOM Inspector or a custom install system.

To persist an attribute from JavaScript, use this method call:

document.persist(tagid, attname);

This will persist the value of the attname attribute for the tag with id equal to tagid.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required