Talk:XPCNativeWrapper

From GreaseSpot Wiki
Revision as of 15:39, 25 May 2007 by 88.112.34.206 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
var arInputs=document.getElementsByTagName('input');
// does not work
for (var elmInput in arInputs) { ... } 
// does work
var elmInput; for (var i=0; elmInput=arInputs[i]; i++) { ... } 

Shouldn't this be:

var arInputs=document.getElementsByTagName('input');
// does not work
for (var elmInput in arInputs) { ... } 
// does work
var elmInput; for (var i=0; i < arInputs.length; i++) {elmInput=arInputs[i]; ... }