Gurigraphics / DOMinus.js

DOMinus.js is a reactive data binding library that turn HTML irrelevant.
4 stars 1 forks source link

Updated to 1.0.0 #2

Closed Gurigraphics closed 5 years ago

Gurigraphics commented 5 years ago

1- Replaced "[type: div]" by "[tag: div]"

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"

2- Add complete list of empty elements:

emptyElements: [ 
"area","base","br","col","embed","hr","img","input",
"keygen","link","meta","param","source","track","wbr" 
],