Fix comparison of Document Type Nodes
Comparison done in `_isEqualXMLNode` for
`node.nodeType == XMLNode.DOCUMENT_TYPE_NODE`,
was comparing `node.systemId == other.system.Id`
instead of `node.systemId == other.systemId`.
@@ -1968,8 +1968,7 @@ def _isEqualXMLNode(
if TYPE_CHECKING:
assert isinstance(node, xml.dom.minidom.DocumentType)
assert isinstance(other, xml.dom.minidom.DocumentType)
- # type error: "DocumentType" has no attribute "system"
- return node.publicId == other.publicId and node.systemId == other.system.Id # type: ignore[attr-defined]
+ return node.publicId == other.publicId and node.systemId == other.systemId
else:
# should not happen, in fact
