]> granicus.if.org Git - python/commitdiff
#1434090: properly append child in expatbuilder doctype handler.
authorGeorg Brandl <georg@python.org>
Sat, 10 Jul 2010 11:40:13 +0000 (11:40 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 10 Jul 2010 11:40:13 +0000 (11:40 +0000)
Lib/xml/dom/expatbuilder.py

index a5354b93514358069570fb1e43fa763b5b19c9b4..a98fe03235ea80dbbf3ade2d1574f5101133f83a 100644 (file)
@@ -242,7 +242,7 @@ class ExpatBuilder:
         doctype = self.document.implementation.createDocumentType(
             doctypeName, publicId, systemId)
         doctype.ownerDocument = self.document
-        self.document.childNodes.append(doctype)
+        _append_child(self.document, doctype)
         self.document.doctype = doctype
         if self._filter and self._filter.acceptNode(doctype) == FILTER_REJECT:
             self.document.doctype = None