-
commit-queue@webkit.org authored
Calling intersectsNode on a detached range should throw. Source/WebCore: INVALID_STATE_ERR exception should be thrown if intersectsNode is called on a detached Range. Patch by Joe Thomas <joethomas@motorola.com> on 2012-01-23 Reviewed by Darin Adler. Test: fast/dom/Range/range-intersectsNode-exception.html * dom/Range.cpp: (WebCore::Range::intersectsNode): Throwing INVALID_STATE_ERR exception if the range is detached. LayoutTests: Added test case to verify the exception thrown while calling intersectsNode on a detached range. Patch by Joe Thomas <joethomas@motorola.com> on 2012-01-23 Reviewed by Darin Adler. * fast/dom/Range/range-intersectsNode-exception-expected.txt: Added. * fast/dom/Range/range-intersectsNode-exception.html: Added. * fast/dom/Range/range-intersectsNode-expected.txt: * fast/dom/Range/resources/intersectsNode.js: Modified the test case to catch the exception. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
5f5c5f30