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

The justifications are to not use a loop (`selectEl.empty()`, `document.empty()`), detach children without re-parsing the element (no `innerHTML = ''`, [Related StackOverflow](https://stackoverflow.com/a/3955238)), and to match prior art (jQuery, Bliss.js).

If `innerHTML = ''` (and I suppose `document.open(); document.close()`?) is the preferred semantic method to empty a parent node, then feel free to close this issue.

-- 
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-316098038

Received on Tuesday, 18 July 2017 15:19:18 UTC