[Webkit-unassigned] [Bug 23886] New: JS Range object should support ==

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 10 18:25:56 PST 2009


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

           Summary: JS Range object should support ==
           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: justin.garcia at apple.com, ojan at google.com,
                    jparent at google.com


JS Range object should support ==

IMO document.createRange() == document.createRange() should return true.

Moreover:
var range1 = document.createRange();
range1.setStart(textNode, 0);
range1.setEnd(textNode, 1);
var range2 = document.createRange();
range2.setStart(textNode, 0);
range2.setEnd(textNode, 1);

range1 == range2 should return true
range1 === range2 should return false

Likewise:
var range1 = document.createRange()
var range2 = range1.cloneRange();

range1 == range2
should return true

FF does not support this behavior, but it makes sense from a user perspective. 
Maybe it doesn't make sense from a JS language perspective?


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