lib/atom/element.rb in atom-tools-2.0.1 vs lib/atom/element.rb in atom-tools-2.0.2

- old
+ new

@@ -286,10 +286,13 @@ e.set(name, x) end self.on_build do |e,x| if v = e.get(name) - e.set_atom_attrb(x, name, v.to_s) + unless x.namespaces[ns[0]] + x.add_namespace *ns + end + x.attributes["#{ns[0]}:#{name}"] = v.to_s end end end # an XML attribute in the Atom namespace