[Webkit-unassigned] [Bug 17184] NodeList objects can't have properties added to them
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 5 13:00:14 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=17184
------- Comment #1 from rboucher at gmail.com 2008-02-05 13:00 PDT -------
Apparently the actual problem here is that every time you call
element.childNodes, you get a new NodeList.
So, the following will not work:
element.childNodes.foo = 1;
alert(element.childNodes.foo); //undefined
But, this does work:
var e = element.childNodes;
e.foo = 1;
alert(e.foo);
Obviously the severity of this is significantly less now, since the alternate
method is acceptable. Though it would be ideal if two immediate requests to
element.childNodes returned the same list.
--
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