lib/atom/element.rb in atom-tools-0.9.4 vs lib/atom/element.rb in atom-tools-1.0.0

- old
+ new

@@ -168,10 +168,10 @@ end end self.class.attrs.each do |name,req| value = self[name.to_s] - elem.attributes[name.to_s] = value if value + elem.attributes[name.to_s] = value.to_s if value end self.extensions.children.each do |element| elem << element.dup # otherwise they get removed from @extensions end