Project

General

Profile

Bug #7110 » 02_lib_cgi_add_html5_header_tag.patch

add <header> tag and some tests - stomar (Marcus Stollsteimer), 10/05/2012 10:22 PM

View differences:

lib/cgi/html.rb (Arbeitskopie)
extend TagMaker
methods = ""
# - -
for element in %w[ SECTION NAV ARTICLE ASIDE HGROUP
for element in %w[ SECTION NAV ARTICLE ASIDE HGROUP HEADER
FOOTER FIGURE FIGCAPTION S TIME U MARK RUBY BDI IFRAME
VIDEO AUDIO CANVAS DATALIST OUTPUT PROGRESS METER DETAILS
SUMMARY MENU DIALOG I B SMALL EM STRONG DFN CODE SAMP KBD
test/cgi/test_cgi_tag_helper.rb (Arbeitskopie)
end
=end
def test_cgi_tag_helper_html5
@environ = {
'REQUEST_METHOD' => 'GET',
}
ENV.update(@environ)
## html5
cgi = CGI.new('html5')
assert_equal('<HEADER></HEADER>',cgi.header)
assert_equal('<FOOTER></FOOTER>',cgi.footer)
assert_equal('<ARTICLE></ARTICLE>',cgi.article)
assert_equal('<SECTION></SECTION>',cgi.section)
end
end
(2-2/2)