rem: var list = getHTMLElements(map.ownerDocument, "object"); for (var i=0; i < list.length; i++) { 
add: list = getHTMLElements(map.ownerDocument, "object"); for (i = 0; i < list.length; i++) { 
context: function getImageForMap(map){    var mapuri = "#" + map.getAttribute("name");    var multipleFound = false;    var img;    var list = getHTMLElements(map.ownerDocument, "img");    for (var i=0; i < list.length; i++) {        if (list.item(i).getAttribute("usemap") == mapuri) {            if (img) {                multipleFound = true;                break;            } else {                img = list.item(i);                imgType = "img";            }        }    }    var list = getHTMLElements(map.ownerDocument, "object");    for (var i=0; i < list.length; i++) {        if (list.item(i).getAttribute("usemap") == mapuri) {            if (img) {              multipleFound = true;              break;            } else {              img = list.item(i);              imgType = "object";            }        }    }    if (multipleFound)        img = null;    return img;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/f0adfa82733d5237a3f77d0c4476728b3d6bd388/metadata.js/buggy/xpfe/browser/resources/content/metadata.js