<?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>15239</bug_id>
          
          <creation_ts>2011-12-16 23:51:09 +0000</creation_ts>
          <short_desc>CharacterData &quot;replace data&quot; documentation error</short_desc>
          <delta_ts>2011-12-17 13:33:47 +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>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brandon Slade">brandonyoyoslade</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>Ms2ger</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>61709</commentid>
    <comment_count>0</comment_count>
    <who name="Brandon Slade">brandonyoyoslade</who>
    <bug_when>2011-12-16 23:51:09 +0000</bug_when>
    <thetext>This is just a documentation error, since I&apos;m sure everybody who reads it will understand what you mean, but in the steps for replacing data (for a CharacterData instance - see http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-cd-replace) steps 9 and 10 are exactly identical. They both state:

&quot;For each range whose start node is node and start offset is greater than offset plus count, increase its start offset by the number of code units in data, then decrease it by count.&quot;

I believe that your intentions were for step 10 to say:

&quot;For each range whose END NODE is node and END OFFSET is greater than offset plus count, increase its start offset by the number of code units in data, then decrease it by count.&quot;

I just want to point it out so that it can be fixed in the next version of the specification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61740</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-12-17 11:00:35 +0000</bug_when>
    <thetext>Thanks!

https://bitbucket.org/ms2ger/dom-core/changeset/6104860df955

(The last start offset also had to be replaced.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61744</commentid>
    <comment_count>2</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2011-12-17 13:28:29 +0000</bug_when>
    <thetext>&lt;span title=concept-range-start-node&gt;end node&lt;/span&gt;

xref is wrong</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61745</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-12-17 13:33:47 +0000</bug_when>
    <thetext>Oops.

https://bitbucket.org/ms2ger/dom-core/changeset/689ca76e379a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>