[Bug 22711] Add a .empty method to the ParentNode (or the Node?) interface

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22711

--- Comment #2 from David Bruant <bruant.d@gmail.com> ---
(In reply to comment #1)
> What's wrong with .textContent = ""?
As much as there is something wrong with node.parentNode.removeChild(node).
It's doesn't say what it means.
Not everyone is expert enough in the DOM aware of the textContent="" trick and
some people just traverse all childNodes to remove them one by one.


> See also bug 17426 and
> http://krijnhoetmer.nl/irc-logs/whatwg/20120605#l-780
I'm not sure I understand what I should be seeing there. People seem to agree,
no? (I'll let others debate on the chaining aspect, I just want the .empty())

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Sunday, 28 July 2013 11:06:28 UTC