summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-04 21:14:19 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-04 21:14:19 +0000
commitb5c5b980ddd9e8ad44c099d9fa9a53c0fb7eb49d (patch)
tree28390335e5c117d6ed24e9dc8788491c371d71eb
parent8519a2d581209e774b52ff8510b6c444971c1021 (diff)
Don't redefine methods
If HTML5 element methods are already defined, don't redefine them. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--lib/cgi/html.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/cgi/html.rb b/lib/cgi/html.rb
index d8dadb0e45..ba19e3d603 100644
--- a/lib/cgi/html.rb
+++ b/lib/cgi/html.rb
@@ -1033,6 +1033,7 @@ class CGI
# Initialise the HTML generation methods for this version.
def element_init
extend TagMaker
+ return if defined?(html)
methods = ""
# - -
for element in %w[ SECTION NAV ARTICLE ASIDE HGROUP HEADER