Initialise the HTML generation methods for this version.
# File lib/cgi.rb, line 2140
def element_init
extend TagMaker
methods = ""
# - -
for element in %w[ TT I B BIG SMALL EM STRONG DFN CODE SAMP KBD
VAR CITE ABBR ACRONYM SUB SUP SPAN BDO ADDRESS DIV MAP OBJECT
H1 H2 H3 H4 H5 H6 PRE Q INS DEL DL OL UL LABEL SELECT OPTGROUP
FIELDSET LEGEND BUTTON TABLE TITLE STYLE SCRIPT NOSCRIPT
TEXTAREA FORM A BLOCKQUOTE CAPTION ]
methods += "def \#{element.downcase}(attributes = {})\n" + nn_element_def(element) + "end\n"
end
# - O EMPTY
for element in %w[ IMG BASE BR AREA LINK PARAM HR INPUT COL META ]
methods += "def \#{element.downcase}(attributes = {})\n" + nOE_element_def(element) + "end\n"
end
# O O or - O
for element in %w[ HTML BODY P DT DD LI OPTION THEAD TFOOT TBODY
COLGROUP TR TH TD HEAD]
methods += "def \#{element.downcase}(attributes = {})\n" + nO_element_def(element) + "end\n"
end
eval(methods)
end