From bf4739ffdca2b9d3ca1d13b52ee87be357aabd09 Mon Sep 17 00:00:00 2001 From: xibbar Date: Thu, 11 Apr 2013 13:23:01 +0000 Subject: * 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 --- lib/cgi/html.rb | 2 +- test/cgi/test_cgi_tag_helper.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cgi/html.rb b/lib/cgi/html.rb index c0ab459e53..59454c1ea5 100644 --- a/lib/cgi/html.rb +++ b/lib/cgi/html.rb @@ -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 << "" diff --git a/test/cgi/test_cgi_tag_helper.rb b/test/cgi/test_cgi_tag_helper.rb index 51d1d58bd3..c4ea477a12 100644 --- a/test/cgi/test_cgi_tag_helper.rb +++ b/test/cgi/test_cgi_tag_helper.rb @@ -349,6 +349,7 @@ class CGITagHelperTest < Test::Unit::TestCase assert_equal('',cgi.footer) assert_equal('
',cgi.article) assert_equal('
',cgi.section) + assert_equal('',cgi.html("BLA"=>"TEST"){}) end end -- cgit v1.2.3