1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
naruse 2012-11-04 21:14:19 +00:00
parent 8519a2d581
commit b5c5b980dd

View file

@ -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