mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/rss/test_taxonomy.rb, test/rss/test_parser_1.0.rb,
test/rss/test_image.rb, test/rss/rss-testcase.rb: ensured declaring XML namespaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b07ff6ba89
commit
3465feb90b
5 changed files with 50 additions and 11 deletions
|
|
@ -332,7 +332,14 @@ EOA
|
|||
|
||||
"<#{h elem_name} #{attrs_str}>\n#{contents_str}\n</#{h elem_name}>"
|
||||
end
|
||||
|
||||
|
||||
def xmlns_container(xmlns_decls, content)
|
||||
attributes = xmlns_decls.collect do |prefix, uri|
|
||||
"xmlns:#{h prefix}=\"#{h uri}\""
|
||||
end.join(" ")
|
||||
"<dummy #{attributes}>#{content}</dummy>"
|
||||
end
|
||||
|
||||
private
|
||||
def setup_rss10(rdf)
|
||||
assert_equal("", rdf.to_s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue