1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
ser 2007-10-02 01:46:13 +00:00
parent a6c2c86b24
commit c1b7ca8fec

View file

@ -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