Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_3_392) is shown here.
element_init()
public
Initialise the HTML generation methods for this version.
Show source
def element_init
extend TagMaker
methods = ""
for element in ] 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 = {}) + nn_element_def(element) + end
end
for element in ] IMG BASE BR AREA LINK PARAM HR INPUT COL META ]
methods += def #{element.downcase}(attributes = {}) + nOE_element_def(element) + end
end
for element in ] HTML BODY P DT DD LI OPTION THEAD TFOOT TBODY
COLGROUP TR TH TD HEAD]
methods += def #{element.downcase}(attributes = {}) + nO_element_def(element) + end
end
eval(methods)
end