Re: [whatwg/dom] [idea] Node.empty() (#955)

A dupe of https://github.com/whatwg/dom/issues/478, although the original post there seems to have been edited to reflect the eventual conclusion of the thread; it started very much like this.

TLDR: use `el.textContent = ""` (which is optimized in browsers) or `el.replaceChildren()`.

-- 
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/955#issuecomment-787505742

Received on Sunday, 28 February 2021 19:13:58 UTC