diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-14 15:01:05 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-14 15:01:05 +0000 |
commit | 10fd0951d17aeaf279a39d4297420fc891efa327 (patch) | |
tree | de92b869f149ac30947e53259092cc331f02de7c /lib/rss | |
parent | fa480f489ce17f5248c9f450038b84bdbe57e5e2 (diff) |
* lib/rss/parser.rb (RSS::ListenerMixin::tag_end):
fixed invalid namespace handling bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss')
-rw-r--r-- | lib/rss/parser.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb index 1030c8f5d4..fb6c55fb72 100644 --- a/lib/rss/parser.rb +++ b/lib/rss/parser.rb @@ -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) |