We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8755eb6 commit 3c9fc21Copy full SHA for 3c9fc21
1 file changed
src/html5lib/treebuilders/dom.py
@@ -94,7 +94,8 @@ def insertDoctype(self, name, publicId, systemId):
94
domimpl = Dom.getDOMImplementation()
95
doctype = domimpl.createDocumentType(name, publicId, systemId)
96
self.document.appendChild(NodeBuilder(doctype))
97
- doctype.ownerDocument = self.dom
+ if Dom == minidom:
98
+ doctype.ownerDocument = self.dom
99
100
def elementClass(self, name):
101
return NodeBuilder(self.dom.createElement(name))
0 commit comments