[Webkit-unassigned] [Bug 9508] JavaScript Comparing a form element group to itself returns false.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 22 09:43:15 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=9508
------- Comment #2 from sanjay12 at gmail.com 2007-01-22 09:43 PDT -------
The root issue here is that when comparing objects, the equality check in
comparison.cpp does a simple pointer comparison to see whether or not two
objects are the same. However, when you access a form group where there's
multiple elements with the same name, you get a temporary
DOMNamedNodesCollection pointer. So the equality check is checking the
addresses of two distinct temporary objects, which of course will always fail.
I have an idea for a relatively clean solution, will post the patch this
evening.
--
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