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

@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