lazd / DOMly

The fast template system that creates and clones DOM nodes
MIT License
53 stars 9 forks source link

Elements with is="custom-element" attributes do not result in the correct createElement call #12

Closed lazd closed 10 years ago

lazd commented 10 years ago

The createElement for <button is="custom-button">Hi</button> should be:

var el0 = document.createElement("button","custom-button");
el0.setAttribute("is", "custom-button");
el0.textContent = "Hi";

But it ends up being:

var el0 = document.createElement("button");
el0.setAttribute("is", "custom-button");
el0.textContent = "Hi";