mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
#1434090: properly append child in expatbuilder doctype handler.
This commit is contained in:
parent
73b1c7ba7d
commit
297d97241a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue