From d15f41b0eb0f284cb15ee814c691e556ae20d8b1 Mon Sep 17 00:00:00 2001 From: ser Date: Fri, 23 Apr 2004 15:44:30 +0000 Subject: * Non-String attributes are now converted to Strings; this means code such as elem.attributes["a"] = 1 will not cause an error when dumping the XML. It also means that: elem.attributes["a"] # => "1", not 1 * Transitive indenting has been cleaned up. * Fixed a potential bug in parsing non-ASCII encoded streams * Fixed a bug where trying to fill in ParseException data was causing an IO error (stream closed) * Changes to Text mean that Element (and Text) can be used outside of a Document context. * In some rare cases, the base parser wasn't reading enough bytes from the stream for the parsing algorithm to work properly. This has been fixed (this was Ruby bug #48426) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rexml/attribute.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rexml/attribute.rb') diff --git a/lib/rexml/attribute.rb b/lib/rexml/attribute.rb index df07ce7a18..90d7e66122 100644 --- a/lib/rexml/attribute.rb +++ b/lib/rexml/attribute.rb @@ -36,7 +36,7 @@ module REXML elsif first.kind_of? String @element = parent if parent.kind_of? Element self.name = first - @value = second + @value = second.to_s else raise "illegal argument #{first.class.name} to Attribute constructor" end -- cgit v1.2.3