diff options
author | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-02 01:46:13 +0000 |
---|---|---|
committer | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-02 01:46:13 +0000 |
commit | c1b7ca8feccf9432d0c8de5f75b43ab889cc1292 (patch) | |
tree | bd649e089c4ab6c29f932513cee8120d07c174bb | |
parent | a6c2c86b24d53a02f4da229b8eab537ac57f06f5 (diff) | |
download | ruby-c1b7ca8feccf9432d0c8de5f75b43ab889cc1292.tar.gz |
r1365@bean: ser | 2007-10-01 21:24:32 -0400
r1346@bean: ser | 2007-07-28 10:00:36 -0400
Fixes ticket:102.
Fix provided by kevinj -- thanks! Great job.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/rexml/element.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rexml/element.rb b/lib/rexml/element.rb index f757cfffa8..da3fb57872 100644 --- a/lib/rexml/element.rb +++ b/lib/rexml/element.rb @@ -553,6 +553,7 @@ module REXML def attribute( name, namespace=nil ) prefix = nil prefix = namespaces.index(namespace) if namespace + prefix = nil if prefix == 'xmlns' attributes.get_attribute( "#{prefix ? prefix + ':' : ''}#{name}" ) end |