- From: Andres Rios <notifications@github.com>
- Date: Tue, 18 Jul 2017 15:09:12 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 18 July 2017 15:09:42 UTC
@domenic , it was my humble opinion about the @jonathantneal 's idea. For me is logic to expect something that empties the content of a tag. The name of ```empty()``` may suggest that browser is removing every child from its parent, including listeners and so on. In the other hand, ```innerHTML``` looks like a DOM hack. However... ```javascript Node.prototype.empty = function() { this.innerHTML = ''; }; ``` -- 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-316094754
Received on Tuesday, 18 July 2017 15:09:42 UTC