summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/cgi/html.rb2
-rw-r--r--test/cgi/test_cgi_tag_helper.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/cgi/html.rb b/lib/cgi/html.rb
index c0ab459..59454c1 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 << "</#{element.upcase}>"
diff --git a/test/cgi/test_cgi_tag_helper.rb b/test/cgi/test_cgi_tag_helper.rb
index 51d1d58..c4ea477 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('<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