diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2000-10-07 12:10:28 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2000-10-07 12:10:28 (GMT) |
commit | a2fda0dfaba89162e11b969622663ae4c00fa7c1 (patch) | |
tree | 39f053d018ba3e78782bd8204d266731c0b917e9 /Lib/xml/dom | |
parent | 8bf9e3b9436b3e397dae3014365851545f7d0ddb (diff) | |
download | cpython-a2fda0dfaba89162e11b969622663ae4c00fa7c1.zip cpython-a2fda0dfaba89162e11b969622663ae4c00fa7c1.tar.gz cpython-a2fda0dfaba89162e11b969622663ae4c00fa7c1.tar.bz2 |
Record bugs found when comparing the module with DOM Core Level 2.
Diffstat (limited to 'Lib/xml/dom')
-rw-r--r-- | Lib/xml/dom/minidom.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index 7d610c6..b2b6e7d 100644 --- a/Lib/xml/dom/minidom.py +++ b/Lib/xml/dom/minidom.py @@ -250,7 +250,7 @@ class AttributeList: del self._attrs[node.name] del self._attrsNS[(node.namespaceURI, node.localName)] -class Element( Node ): +class Element(Node): nodeType = Node.ELEMENT_NODE def __init__(self, tagName, namespaceURI="", prefix="", @@ -287,6 +287,7 @@ class Element( Node ): attr = Attr(qualifiedName, namespaceURI, localname, prefix) attr.__dict__["value"] = attr.__dict__["nodeValue"] = value self.setAttributeNode(attr) + # FIXME: return original node if something changed. def getAttributeNode(self, attrname): return self._attrs.get(attrname) @@ -300,6 +301,7 @@ class Element( Node ): old.unlink() self._attrs[attr.name] = attr self._attrsNS[(attr.namespaceURI, attr.localName)] = attr + # FIXME: return old value if something changed def removeAttribute(self, name): attr = self._attrs[name] @@ -323,6 +325,7 @@ class Element( Node ): def __repr__(self): return "<DOM Element: %s at %s>" % (self.tagName, id(self)) + # undocumented def writexml(self, writer): writer.write("<" + self.tagName) |