[Webkit-unassigned] [Bug 23601] New: DOMSelection.getRangeAt() returns a different range than the selection

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 28 13:56:51 PST 2009


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

           Summary: DOMSelection.getRangeAt() returns a different range than
                    the selection
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: eric at webkit.org
                CC: darin at apple.com, justin.garcia at apple.com,
                    ojan at google.com, jparent at google.com
OtherBugsDependingO 23600
             nThis:


DOMSelection.getRangeAt() returns a different range than the selection

Attached is the same test as bug 23600, except the text node is not empty. 
It's clear that our behavior is wrong here:

comparing point with <text>, offset 0:
FAILED: result = 1 expected 0
range:
startContainer: [object HTMLDivElement]
startOffset: 0
endContainer: [object HTMLDivElement]
endOffset: 0
selection:
anchorNode: [object Text]
anchorOffset: 0
focusNode: [object Text]
focusOffset: 0
asd


-- 
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