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:
parent
3e84b2204a
commit
bf4739ffdc
2 changed files with 2 additions and 1 deletions
|
@ -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}>"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue