[Webkit-unassigned] [Bug 17137] New: for loop index is undefined when using 'in'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 1 08:18:44 PST 2008


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

           Summary: for loop index is undefined when using 'in'
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mikel.walters at gmail.com
                CC: mikel.walters at gmail.com


for(var i in document.styleSheets) <-- doesnt work
{
  document.styleSheets[i] is undefined always
}

for(var i=0; i<document.styleSheets.length; i++)
{
  document.styleSheets[i] works!
}


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