Re: [dom] Proposal to improve the DOM creation api (#150)

I'm not sure why you need a parsing library exactly? Can't you just use

```js
document.createElement("template");
template.innerHTML = passedInStringAfterSubstitutions;
return template.contents;
```

Maybe the problem is safely generated `passedInStringAfterSubstitutions`. but maybe it's not; just do HTML escaping and then concatenation. See e.g. https://github.com/domenic/count-to-6/blob/master/lib/exercises/tagged_template_strings/solution/solution.js

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/150#issuecomment-182506279

Received on Wednesday, 10 February 2016 18:05:27 UTC