WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Ms2ger (he/him; ⌚ UTC+1/+2)
Reported
2012-01-08 08:17:43 PST
Spec: <
http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#dom-range-intersectsnode
> Test: <
https://w3c-test.org/webapps/DOMCore/tests/submissions/AryehGregor/Range-intersectsNode.html
> Code:
http://codesearch.google.com/#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/dom/Range.cpp&exact_package=chromium&q=intersectsNode&type=cs&l=587
> But note
bug 73147
.
Attachments
ProposedPatch
(5.59 KB, patch)
2012-01-19 10:02 PST
,
Joe Thomas
no flags
Details
Formatted Diff
Diff
Patch2
(5.62 KB, patch)
2012-01-19 11:18 PST
,
Joe Thomas
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
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
Created
attachment 123154
[details]
Patch2
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.
Top of Page
Format For Printing
XML
Clone This Bug