diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index 5fd3911bd3c9eb..57675946f38d1b 100644 --- a/Lib/xml/dom/minidom.py +++ b/Lib/xml/dom/minidom.py @@ -38,6 +38,7 @@ class Node(xml.dom.Node): ownerDocument = None nextSibling = None previousSibling = None + nodeValue = None prefix = EMPTY_PREFIX # non-null only for NS elements and attributes @@ -366,9 +367,7 @@ def _get_elements_by_tagName_ns_helper(parent, nsURI, localName, rc): class DocumentFragment(Node): nodeType = Node.DOCUMENT_FRAGMENT_NODE nodeName = "#document-fragment" - nodeValue = None attributes = None - parentNode = None _child_node_types = (Node.ELEMENT_NODE, Node.TEXT_NODE, Node.CDATA_SECTION_NODE, @@ -711,7 +710,6 @@ class Element(Node): 'namespaceURI', '_localName', 'childNodes', '_attrs', '_attrsNS', 'nextSibling', 'previousSibling') nodeType = Node.ELEMENT_NODE - nodeValue = None schemaType = _no_type _magic_id_nodes = 0 @@ -1353,7 +1351,6 @@ def _get_systemId(self): class DocumentType(Identified, Childless, Node): nodeType = Node.DOCUMENT_TYPE_NODE - nodeValue = None name = None publicId = None systemId = None @@ -1414,7 +1411,6 @@ def writexml(self, writer, indent="", addindent="", newl=""): class Entity(Identified, Node): attributes = None nodeType = Node.ENTITY_NODE - nodeValue = None actualEncoding = None encoding = None @@ -1492,7 +1488,6 @@ def writexml(self, writer, indent="", addindent="", newl=""): class Notation(Identified, Childless, Node): nodeType = Node.NOTATION_NODE - nodeValue = None def __init__(self, name, publicId, systemId): self.nodeName = name @@ -1638,10 +1633,7 @@ class Document(Node, DocumentLS): implementation = DOMImplementation() nodeType = Node.DOCUMENT_NODE nodeName = "#document" - nodeValue = None attributes = None - parentNode = None - previousSibling = nextSibling = None # Document attributes from Level 3 (WD 9 April 2002)