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 24668 - "To set the start or end of a range to a boundary point" should check owner document
Summary: "To set the start or end of a range to a boundary point" should check owner d...
Status: RESOLVED INVALID
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-14 19:57 UTC by Ryosuke Niwa
Modified: 2014-03-24 16:56 UTC (History)
2 users (show)

See Also:


Attachments

Description Ryosuke Niwa 2014-02-14 19:57:30 UTC
http://dom.spec.whatwg.org/#concept-range-bp-set
should check if "node" argument belongs to the same owner document as that of the context object.

If not, Gecko and WebKit both collapse the range to the new start/end and change its owner document to the new document.
Comment 1 Anne 2014-03-15 15:14:11 UTC
I don't understand. The context object doesn't have an associated document per the specification.
Comment 2 Anne 2014-03-24 16:15:48 UTC
Ping?
Comment 3 Ryosuke Niwa 2014-03-24 16:56:28 UTC
(In reply to Anne from comment #1)
> I don't understand. The context object doesn't have an associated document
> per the specification.

Oh, I see. So DOM4's Range doesn't have an associated document.  And we simply guarantee that start & end have the same root.  That makes sense.

Thanks for pointing that out.