[Webkit-unassigned] [Bug 9508] JavaScript Comparing a form element group to itself returns false.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 26 11:04:52 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=9508





------- Comment #9 from darin at apple.com  2007-01-26 11:04 PDT -------
(In reply to comment #8)
> Regarding strict equal, are you saying that "strict equal in this case should
> be false" or "strict equal already works, so we don't need to change it." Well
> currently, strict equal returns false in this case (for objects it's still
> doing a pointer comparison), but Firefox says it should be true. So I'm pretty
> sure strict equal does need to be fixed as well. Making the caching change will
> fix it at the same time as reguar equal.

I was saying that === should be false.

If === is true in Firefox, that indicates they use the same object, not just an
equal one. So that makes me think even more strongly that the best way to do
this is by "caching" the object and passing the same one out.

> Good point about getting rid of the second virtual call and having it just do a
> the pointer comparison first in an isEqual() function to save virtual call
> overhead, but I guess that's irrelevant anyways with the caching solution.

It's relevant if we ever want to give object classes a way to define what
equality means. And if we do that it will be for equal but not strictEqual.
It's possible we'll never need that though.


-- 
Configure bugmail: http://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