[Webkit-unassigned] [Bug 20117] New: setBaseAndExtent fails to reverse the current selection

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 20 12:46:36 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=20117

           Summary: setBaseAndExtent fails to reverse the current selection
           Product: WebKit
           Version: 525.x (Safari 3.1)
          Platform: PC
               URL: http://nick-santos.com/tests/rangetest.html
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nicksantos at google.com


Repro steps:
1) Create a range with Javascript and set the base and extent as:
range.setBaseAndExtent(start, 0, end, 0);
and select it.
2) Creacte a range with Javascript and set the base and extent as:
range.setBaseAndExtent(end, 0, start, 0);
and select it.

Expected result:
The current selection should be reversed: end-to-start.

Actual result:
The current selection does not change when the second range is selected.

See the attached link for a test case. Notice that if you clear the selection
between the two steps, everything works as expected.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list