-
eae@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=93009 Reviewed by Ojan Vafai. Source/WebCore: The latest working draft of the DOM4 spec has all but killed the WRONG_DOCUMENT_ERR exception. Update isPointInRange to return false instead of throwing an exception when the range and point are in different documents. This matches the Mozilla behavior. Test: fast/html/range-point-in-range-for-different-documents.html * dom/Range.cpp: (WebCore::Range::isPointInRange): Return false instead of throwing WRONG_DOCUMENT_ERR when the point is in a different document. LayoutTests: Add test for Range::isPointInRange where the point is in a different document than the range. * fast/dom/move-nodes-across-documents.html: Change expectations for isPointInRange * fast/html/range-point-in-range-for-different-documents-expected.txt: Added. * fast/html/range-point-in-range-for-different-documents.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1de3c0ad