Bug 15239 - CharacterData "replace data" documentation error
CharacterData "replace data" documentation error
Status: RESOLVED FIXED
Product: WebAppsWG
Classification: Unclassified
Component: DOM
unspecified
PC Windows NT
: P2 minor
: ---
Assigned To: Anne
public-webapps-bugzilla
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-16 23:51 UTC by Brandon Slade
Modified: 2011-12-17 13:33 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Slade 2011-12-16 23:51:09 UTC
This is just a documentation error, since I'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:

"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."

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

"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."

I just want to point it out so that it can be fixed in the next version of the specification.
Comment 1 Anne 2011-12-17 11:00:35 UTC
Thanks!

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

(The last start offset also had to be replaced.)
Comment 2 Ms2ger 2011-12-17 13:28:29 UTC
<span title=concept-range-start-node>end node</span>

xref is wrong