Closed thipages closed 5 years ago
I started using:
HTML.header = {
tag: "ul",
attrs: { id: "header" },
html: "header_content"
}
And the child was not good at writing:
HTML.header_content = [
{ tag:"li", attrs: { id: "header" }, html: "0" },
{ tag:"li", attrs: { id: "header" }, html: "1" },
]
So I simplified it. It would be useful if you shared the same attributes, but this is not the case. Then, also simplifying the parent is same the next step to progress.
Now accept both syntax. https://github.com/Gurigraphics/DOMinus.js/issues/6
Well done.
Hi, What is the reason why of proposing two different syntax for parent and children
Parent (with attrs)
children (without attrs)
Why not writing parent like this?
Thank you