Fix HTML Element copy method

Was missing the namespace copy
This commit is contained in:
iska
2015-04-09 21:20:04 +02:00
parent 2c387c13ef
commit c60f308ca5
+2 -1
View File
@@ -42,7 +42,7 @@
{
self = [super initWithName:tagName type:HTMLNodeElement];
if (self) {
_tagName = tagName;
_tagName = [tagName copy];
_attributes = [HTMLOrderedDictionary new];
if (attributes != nil) {
[_attributes addEntriesFromDictionary:attributes];
@@ -108,6 +108,7 @@
HTMLElement *copy = [super copyWithZone:zone];
copy->_tagName = [_tagName copy];
copy->_attributes = [_attributes copy];
copy->_htmlNamespace = _htmlNamespace;
return copy;
}