Re: [whatwg/dom] Proposal: ParentNode.empty() (#478)

Most of the time I just use `.innerHTML = ""`.

I guess the value-add here would be for parent nodes that are not elements, so documents and document fragments. Do you often need to empty such nodes in your code? Could you give an example?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/478#issuecomment-315942706

Received on Tuesday, 18 July 2017 02:47:52 UTC