def registerDOMImplementation(name, factory):
 registered[name] = factory

def registerDOMImplementation ( name , factory ) : registered [ name ] = factory
registerdomimplementation register the factory function with the name .