[Python-checkins] CVS: python/dist/src/Lib/xml/dom minidom.py,1.8,1.9

Martin v. Löwis python-dev@python.org
Sat, 7 Oct 2000 05:10:31 -0700


Update of /cvsroot/python/python/dist/src/Lib/xml/dom
In directory slayer.i.sourceforge.net:/tmp/cvs-serv21665

Modified Files:
	minidom.py 
Log Message:
Record bugs found when comparing the module with DOM Core Level 2.


Index: minidom.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/xml/dom/minidom.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** minidom.py	2000/10/06 22:36:02	1.8
--- minidom.py	2000/10/07 12:10:28	1.9
***************
*** 251,255 ****
          del self._attrsNS[(node.namespaceURI, node.localName)]
  
! class Element( Node ):
      nodeType = Node.ELEMENT_NODE
  
--- 251,255 ----
          del self._attrsNS[(node.namespaceURI, node.localName)]
  
! class Element(Node):
      nodeType = Node.ELEMENT_NODE
  
***************
*** 288,291 ****
--- 288,292 ----
          attr.__dict__["value"] = attr.__dict__["nodeValue"] = value
          self.setAttributeNode(attr)
+         # FIXME: return original node if something changed.
  
      def getAttributeNode(self, attrname):
***************
*** 301,304 ****
--- 302,306 ----
          self._attrs[attr.name] = attr
          self._attrsNS[(attr.namespaceURI, attr.localName)] = attr
+         # FIXME: return old value if something changed
  
      def removeAttribute(self, name):
***************
*** 324,327 ****
--- 326,330 ----
          return "<DOM Element: %s at %s>" % (self.tagName, id(self))
  
+     # undocumented
      def writexml(self, writer):
          writer.write("<" + self.tagName)