RESOLVED FIXED 75799
Calling intersectsNode on a detached range should throw
https://bugs.webkit.org/show_bug.cgi?id=75799
Summary Calling intersectsNode on a detached range should throw
Attachments
ProposedPatch (5.59 KB, patch)
2012-01-19 10:02 PST, Joe Thomas
no flags
Patch2 (5.62 KB, patch)
2012-01-19 11:18 PST, Joe Thomas
no flags
Darin Adler
Comment 1 2012-01-10 10:20:22 PST
It would be trivial to fix this, and also seems it would do no harm if we later removed the concept of a detached range. So there is no reason not to add the 2-line check needed to comply. (I also think we should change the bugs.webkit.org component name from XML DOM to Core DOM because the current name is too confusing.)
Joe Thomas
Comment 2 2012-01-19 10:02:37 PST
Created attachment 123144 [details] ProposedPatch
Ms2ger (he/him; ⌚ UTC+1/+2)
Comment 3 2012-01-19 10:07:15 PST
View in context: https://bugs.webkit.org/attachment.cgi?id=123144&action=review > Source/WebCore/dom/Range.cpp:602 > + if ((m_start.container() && !refNode->attached()) This can be just !refNode->attached() now, no?
Joe Thomas
Comment 4 2012-01-19 11:18:11 PST
Joe Thomas
Comment 5 2012-01-19 11:19:02 PST
(In reply to comment #3) > View in context: https://bugs.webkit.org/attachment.cgi?id=123144&action=review > > > Source/WebCore/dom/Range.cpp:602 > > + if ((m_start.container() && !refNode->attached()) > > This can be just !refNode->attached() now, no? Yes, you are right. I did not notice that. new patch attached. Thanks.
WebKit Review Bot
Comment 6 2012-01-23 15:46:29 PST
Comment on attachment 123154 [details] Patch2 Clearing flags on attachment: 123154 Committed r105649: <http://trac.webkit.org/changeset/105649>
WebKit Review Bot
Comment 7 2012-01-23 15:46:34 PST
All reviewed patches have been landed. Closing bug.
Lucas Forschler
Comment 8 2019-02-06 09:03:45 PST
Mass moving XML DOM bugs to the "DOM" Component.
Note You need to log in before you can comment on or make changes to this bug.