Bug #7110 » 02_lib_cgi_add_html5_header_tag.patch
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
|
- « Previous
- 1
- 2
- Next »