diff options
author | Georg Brandl <georg@python.org> | 2010-07-10 11:40:13 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-07-10 11:40:13 (GMT) |
commit | 297d97241a065fe2a341fe5f340c81566b762142 (patch) | |
tree | 68b4aa1b4b1916baf934ff60c901726533733794 /Lib/xml/dom | |
parent | 73b1c7ba7da33ec3d6d7f1ff709210e8be7218ac (diff) | |
download | cpython-297d97241a065fe2a341fe5f340c81566b762142.zip cpython-297d97241a065fe2a341fe5f340c81566b762142.tar.gz cpython-297d97241a065fe2a341fe5f340c81566b762142.tar.bz2 |
#1434090: properly append child in expatbuilder doctype handler.
Diffstat (limited to 'Lib/xml/dom')
-rw-r--r-- | Lib/xml/dom/expatbuilder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/dom/expatbuilder.py b/Lib/xml/dom/expatbuilder.py index a5354b9..a98fe03 100644 --- a/Lib/xml/dom/expatbuilder.py +++ b/Lib/xml/dom/expatbuilder.py @@ -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 |