aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cgi/core.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cgi/core.rb')
-rw-r--r--lib/cgi/core.rb6
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