1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/cgi/html.rb: fix tagmaker because attributes should recognize.

[Bug #8252]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
xibbar 2013-04-11 13:23:01 +00:00
parent 3e84b2204a
commit bf4739ffdc
2 changed files with 2 additions and 1 deletions

View file

@ -51,7 +51,7 @@ class CGI
#
# O O or - O
def nO_element(element, attributes = {})
s = nOE_element(element)
s = nOE_element(element, attributes)
if block_given?
s << yield.to_s
s << "</#{element.upcase}>"

View file

@ -349,6 +349,7 @@ class CGITagHelperTest < Test::Unit::TestCase
assert_equal('<FOOTER></FOOTER>',cgi.footer)
assert_equal('<ARTICLE></ARTICLE>',cgi.article)
assert_equal('<SECTION></SECTION>',cgi.section)
assert_equal('<!DOCTYPE HTML><HTML BLA="TEST"></HTML>',cgi.html("BLA"=>"TEST"){})
end
end