This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Yes! As far as I know no good use cases have ever been presented.
Apparently Acid3 uses replaceWholeText().
Only once though and should be easy to remove.
https://bugzilla.mozilla.org/show_bug.cgi?id=683482
replaceWholeText makes certain DOM modifications faster. If you have <span>[text1][text2][text3]</span> using [textX].replaceWholeText(foo) should be faster than span.textContent = foo; or span.innerHTML = foo; Or manually removing all but one text node. But I'm not sure if that is a case to worry about. (In any case http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#dom-text-replacewholetext is buggy, since based on it all the adjacent text nodes should be removed, but that is not what replaceWholeText does.)
I fixed the description of replaceWholeText for now. Hopefully we can remove it though. I do not think performance matters that much here.
Gone: https://bitbucket.org/ms2ger/dom-core/changeset/2f0511729bf5