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

I think the main hindrance is it becoming a popular way to create elements, maybe even the defacto way. And probably if we were to add an API like that I'd like the default to be safer than `innerHTML`. E.g., have XSS filtering by default and require the usage of ```unsafeHTML`...```` to do what the library does now.

(Then there's also other activity around the HTML parser that likely takes priority for implementers, such as making custom elements work and providing a streaming API around the HTML parser (once we have sorted out network streaming).)

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

Received on Wednesday, 2 March 2016 08:21:28 UTC