[XML-SIG] Providing a DOMImplementationFactory

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon, 5 Feb 2001 08:21:25 +0100

> >   xml.dom.getDOMImplementation([name])
> >   xml.dom.registerDOMImplementation(name, implementation)
> I think it should be a factory, because I've just been thinking
> about the ability to set properties non-globally on DOM
> implementations.  For instance, I think 4DOM should come with the
> mutation event system disabled unless support for this is set as a
> property.

Ok. So register gets a callable as its second argument then, and
modules which provide an implemation should provide a
getDOMImplementation function (in addition to the implementation
singleton that they may provide for backwards compatibility).

> Sounds good enough to try out.

Thanks. I'll prepare a patch for PyXML and 2.1b1.