#1434090: properly append child in expatbuilder doctype handler.

This commit is contained in:
Georg Brandl 2010-07-10 11:40:13 +00:00
parent 73b1c7ba7d
commit 297d97241a

View 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