Status: New
Owner: ----

New issue 299 by salem.sallnas: Looping through an object with for/in  
includes 'length'-property and 'item'-function
http://code.google.com/p/v8/issues/detail?id=299


////////////////////////////////////////////////////////
var oIframes = document.getElementsByTagName('iframe');

for(i in oIframes){
     alert(i + ': ' + oIframes[i]);
}
////////////////////////////////////////////////////////

The above script will loop through the oIframes object and include the
length-property and the item()-property. An ordinary
for(i=0;i<oIframes.length;i++) will not obviously.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to