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:
parent
8519a2d581
commit
b5c5b980dd
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue