isPointInRage(), comparePoint(), and intersectNode() of Range interface has incorrect same-tree check |
||
Issue descriptionVersion: 56 canary OS: all What steps will reproduce the problem? (1) Open http://w3c-test.org/dom/ranges/Range-set.html and http://w3c-test.org/dom/ranges/Range-isPointInRange.html What is the expected output? All tests pass. What do you see instead? 845 tests fail on Range-set.html, and 478 tests fail on Range-isPointInRange.html Please use labels and text to provide additional information.
,
Oct 17 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/8a2aa879982c582f811a9d9ef75286b8d27aab84 commit 8a2aa879982c582f811a9d9ef75286b8d27aab84 Author: tkent <tkent@chromium.org> Date: Mon Oct 17 08:07:59 2016 Range object should check root node identify instead of inActiveDocument(). https://dom.spec.whatwg.org/#dom-range-ispointinrange According to the DOM standard, isPointInRange(), comparePoint(), and intersectNode() should check root identity, not whether the specified node is in an active document. Thew new behavior matches to Firefox and Safari. This CL fixes 1,323 failing tests in imported/wpt/dom/ranges/. BUG= 656459 Review-Url: https://codereview.chromium.org/2416963007 Cr-Commit-Position: refs/heads/master@{#425630} [modify] https://crrev.com/8a2aa879982c582f811a9d9ef75286b8d27aab84/third_party/WebKit/LayoutTests/TestExpectations [delete] https://crrev.com/201585d73b60b9043147deee9e21a8c8b4b916a5/third_party/WebKit/LayoutTests/imported/wpt/dom/ranges/Range-isPointInRange-expected.txt [modify] https://crrev.com/8a2aa879982c582f811a9d9ef75286b8d27aab84/third_party/WebKit/Source/core/dom/Range.cpp [modify] https://crrev.com/8a2aa879982c582f811a9d9ef75286b8d27aab84/third_party/WebKit/Source/core/dom/Range.h
,
Oct 17 2016
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Oct 16 2016