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