* lib/rss/parser.rb (RSS::ListenerMixin::tag_end):

fixed invalid namespace handling bug.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2005-02-14 15:01:05 +00:00
parent 1883e41c1b
commit e65affb360
2 changed files with 7 additions and 1 deletions

View file

@ -229,7 +229,7 @@ module RSS
ns = @ns_stack.last.dup
attrs = {}
attributes.each do |n, v|
if n =~ /\Axmlns:?/
if /\Axmlns(?:\z|:)/ =~ n
ns[$POSTMATCH] = v
else
attrs[n] = v
@ -256,6 +256,7 @@ module RSS
tags = @tag_stack.pop
pr = @proc_stack.pop
pr.call(text, tags) unless pr.nil?
@ns_stack.pop
end
def text(data)