Fix copy methods for CharacterData and DocumentType nodes

This commit is contained in:
iska
2016-12-31 16:26:06 +01:00
parent 9795172c9c
commit ea17eeef9d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -139,8 +139,8 @@ NS_INLINE BOOL nilOrEqual(id first, id second) {
- (id)copyWithZone:(NSZone *)zone
{
HTMLDocumentType *copy = [super copyWithZone:zone];
copy->_publicIdentifier = self.publicIdentifier;
copy->_systemIdentifier = self.systemIdentifier;
copy->_publicIdentifier = [_publicIdentifier copy];
copy->_systemIdentifier = [_systemIdentifier copy];
return copy;
}