Closed Gurigraphics closed 5 years ago
Example:
HTML.element = { tag: "div", attrs: { id: "element" }, html: "element_input" } HTML.element_input = { tag: "input", attrs: { id: "element_input", value:"myValue", type:"text" } } DOM.add("element", "#app"); //HTML.element_input.attrs.type = "password"
emptyElements: [ "area","base","br","col","embed","hr","img","input", "keygen","link","meta","param","source","track","wbr" ],
1- Replaced "[type: div]" by "[tag: div]"
Example:
2- Add complete list of empty elements: