This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15239 - CharacterData "replace data" documentation error
Summary: CharacterData "replace data" documentation error
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 minor
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-16 23:51 UTC by Brandon Slade
Modified: 2011-12-17 13:33 UTC (History)
3 users (show)

See Also:


Attachments

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