[Patches] [Patch #103885] Dynamic registration and lookup of DOM implementations
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 19 Feb 2001 14:50:20 -0800
Patch #103885 has been updated.
Project: python
Category: XML
Status: Open
Submitted by: loewis
Assigned to : loewis
Summary: Dynamic registration and lookup of DOM implementations
Follow-Ups:
Date: 2001-Feb-19 14:50
By: fdrake
Comment:
Just about, I think.
xml.dom.minidom should define getDOMImplementaion() this way:
def getDOMImplementation():
return Document.implementation
(There's no need to create new instances of a data-less object.)
The search loop at the end of domreg.getDOMImplementation() should only do
the _good_enough()/return test in an "else" clause of the try/except,
otherwise it can test the same implementation objects more than once.
The documentation should indicate that each DOM implementation should
provide a getDOMImplementation() that returns the same object each time
wherever possible.
Which points out the need for documentation, but I can convert the
docstrings myself for this one.
Assign back to me for review after making changes.
-------------------------------------------------------
-------------------------------------------------------
For more info, visit:
http://sourceforge.net/patch/?func=detailpatch&patch_id=103885&group_id=5470