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:
parent
a6c2c86b24
commit
c1b7ca8fec
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue