[Webkit-unassigned] [Bug 14901] for in loop on an Array does not work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 8 07:08:23 PDT 2007


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





------- Comment #4 from atrasatti at mtld.mobi  2007-08-08 07:08 PDT -------
(In reply to comment #2)
> Created an attachment (id=15867)
 --> (http://bugs.webkit.org/attachment.cgi?id=15867&action=view) [edit]
> test (works for me)
> 
> Same test in an attachment.
> 
> Seems to work fine in shipping 10.4.10 Safari/WebKit, and also with nightly
> r24875.

It is working for me too, actually. Weird how I could not make it work in my
page and then created a sample script that worked.

The original reason why I filed the bug was this:
var children = document.getElementsByTagName('SELECT');
alert(children.length);
for (var c in children) {
   alert('loop '+c);
}


I left the alerts just for your reference. In my page I have 5 select elements
and the first alert correctly says so, but then never gets to the "loop*"
alerts.
See the new attachment that I have created. I made two versions one that is
within a function and one (less readable) directly in the select element.


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