- From: Jonathan Neal <notifications@github.com>
- Date: Tue, 18 Jul 2017 08:18:52 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 18 July 2017 15:19:18 UTC
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