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 15544 - Wrong node used for range adjustment in the remove mutation
Summary: Wrong node used for range adjustment in the remove mutation
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Aryeh Gregor
QA Contact: public-webapps-bugzilla
URL: http://dvcs.w3.org/hg/domcore/raw-fil...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-13 15:54 UTC by Stig Halvorsen
Modified: 2012-01-17 16:34 UTC (History)
3 users (show)

See Also:


Attachments

Description Stig Halvorsen 2012-01-13 15:54:51 UTC
In step 2 and 3 in the description of the remove mutation in DOMCore [1], the spec states that:

 "For each range whose start/end node is a descendant of _parent_, set its start/end to (parent, index)."

That doesn't seem to be what browsers do.

What browsers do seems to be more like:

 "For each range whose start/end node is a descendant of _child_, set its start/end to (parent, index)."

Which makes more sense, since child is being removed here and boundary points under child will be gone after the mutation, and so setting them to an offset of the parent seems appropriate.

[1] http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#concept-node-remove
Comment 1 Aryeh Gregor 2012-01-17 16:34:43 UTC
Thanks!  I've fixed it:

http://dvcs.w3.org/hg/domcore/rev/8fd99dd0579b