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