<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>13046</bug_id>
          
          <creation_ts>2011-06-24 12:32:21 +0000</creation_ts>
          <short_desc>Should we get rid of replaceWholeText?</short_desc>
          <delta_ts>2011-09-20 08:48:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>CORE-41309</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ms2ger">Ms2ger</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>annevk</cc>
    
    <cc>ayg</cc>
    
    <cc>bugs</cc>
    
    <cc>ian</cc>
    
    <cc>jonas</cc>
    
    <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50231</commentid>
    <comment_count>0</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2011-06-24 12:32:21 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50281</commentid>
    <comment_count>1</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2011-06-24 20:31:56 +0000</bug_when>
    <thetext>Yes! As far as I know no good use cases have ever been presented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50308</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-06-25 10:02:37 +0000</bug_when>
    <thetext>Apparently Acid3 uses replaceWholeText().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50309</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-06-25 10:03:40 +0000</bug_when>
    <thetext>Only once though and should be easy to remove.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56103</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-08-31 13:12:14 +0000</bug_when>
    <thetext>https://bugzilla.mozilla.org/show_bug.cgi?id=683482</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56108</commentid>
    <comment_count>5</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2011-08-31 13:53:16 +0000</bug_when>
    <thetext>replaceWholeText makes certain DOM modifications faster.
If you have &lt;span&gt;[text1][text2][text3]&lt;/span&gt;
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&apos;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.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56464</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-09-07 13:08:22 +0000</bug_when>
    <thetext>I fixed the description of replaceWholeText for now. Hopefully we can remove it though. I do not think performance matters that much here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57023</commentid>
    <comment_count>7</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-09-20 08:48:58 +0000</bug_when>
    <thetext>Gone: https://bitbucket.org/ms2ger/dom-core/changeset/2f0511729bf5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>