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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 1 00:38:32 PST 2007


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





------- Comment #15 from sanjay12 at gmail.com  2007-02-01 00:38 PDT -------
I'll look into seeing what happens with other browsers in the case of renaming
the form element group.

But I just realized that due to being able to add/remove members of the form
element group, the caching solution is going to have to be a bit more complex
than it was in the past solution. The problem is the DOMNamedNodesCollection
just has a vector which contains the nodes that existed when the object was
created. But suppose you have a DOMNamedNodesCollection cached and then add or
remove another form element to that group. Well now whenever you try to access
the form element group, you'll still get the DOMNamedNodesCollection that has a
vector to the old state of the form group.

So...the HTMLCollection pointer, then the identifier string name should be what
is used as a key. But then when an HTMLCollection is modified (either a node
added or removed), it has to do a lookup to see whether any
DOMNamedNodesCollections are cached for that identifier, and if so has to
update that DOMNamedNodesCollection to have the correct new state of the form
element group.


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