diff options
author | xibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-04 02:20:55 +0000 |
---|---|---|
committer | xibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-04 02:20:55 +0000 |
commit | aeca9656813575c0ffd696115a607a43eb776012 (patch) | |
tree | 096a269f55df566e627e11a7a27bad4ecf977032 /lib/cgi/core.rb | |
parent | 4336caf20422cdaeb99e519e20ff9214667e594d (diff) |
* lib/cgi/html5.rb: Add html5 tag maker.
* lib/cgi/core.rb: ditto.
[Feature #6637]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi/core.rb')
-rw-r--r-- | lib/cgi/core.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb index e077c6d523..f1e8d3467a 100644 --- a/lib/cgi/core.rb +++ b/lib/cgi/core.rb @@ -771,6 +771,7 @@ class CGI # "html4":: HTML 4.0 # "html4Tr":: HTML 4.0 Transitional # "html4Fr":: HTML 4.0 with Framesets + # "html5":: HTML 5 # # <tt>block</tt>:: # If provided, the block is called when an invalid encoding is @@ -831,6 +832,11 @@ class CGI extend Html4Fr element_init() extend HtmlExtension + when "html5" + require 'cgi/html' + extend Html5 + element_init() + extend HtmlExtension end end |