Initialise the HTML generation methods for this version.
# File lib/cgi.rb, line 2084
def element_init
extend TagMaker
methods = ""
# - -
for element in %w[ A TT I B U STRIKE BIG SMALL SUB SUP EM STRONG
DFN CODE SAMP KBD VAR CITE FONT ADDRESS DIV center MAP
APPLET PRE XMP LISTING DL OL UL DIR MENU SELECT table TITLE
STYLE SCRIPT H1 H2 H3 H4 H5 H6 TEXTAREA FORM BLOCKQUOTE
CAPTION ]
methods += "def \#{element.downcase}(attributes = {})\n" + nn_element_def(element) + "end\n"
end
# - O EMPTY
for element in %w[ IMG BASE BASEFONT BR AREA LINK PARAM HR INPUT
ISINDEX META ]
methods += "def \#{element.downcase}(attributes = {})\n" + nOE_element_def(element) + "end\n"
end
# O O or - O
for element in %w[ HTML HEAD BODY P PLAINTEXT DT DD LI OPTION tr
th td ]
methods += "def \#{element.downcase}(attributes = {})\n" + nO_element_def(element) + "end\n"
end
eval(methods)
end