rem: var imgInfo = imgType == "object" ? img.data : img.src; setInfo ("image-url", imgInfo); var size = getSize(imgInfo); 
add: var imgURL = imgType == "object" ? img.data : img.src; setInfo("image-url", imgURL); var size = getSize(imgURL); 
context: function checkForImage(elem, htmllocalname){    var img;    var imgType;   // "img" = <img>                   // "object" = <object>                   // "input" = <input type=image>                   // "background" = css background (to be added later)    var ismap = false;    if (htmllocalname === "img") {        img = elem;        imgType = "img";    } else if (htmllocalname === "object" &&               elem.type.substring(0,6) == "image/" &&               elem.data) {        img = elem;        imgType = "object";    } else if (htmllocalname === "input" &&               elem.type.toUpperCase() == "IMAGE") {        img = elem;        imgType = "input";    } else if (htmllocalname === "area" || htmllocalname === "a") {        // Clicked in image map?        var map = elem;        ismap = true;        setAlt(map);        while (map && map.nodeType == Node.ELEMENT_NODE && !isHTMLElement(map,"map") )            map = map.parentNode;        if (map && map.nodeType == Node.ELEMENT_NODE) {            img = getImageForMap(map);            var imgLocalName = img && img.localName.toLowerCase();            if (imgLocalName == "img" || imgLocalName == "object") {                imgType = imgLocalName;            }        }    }    if (img) {        var imgInfo = imgType == "object" ? img.data : img.src;        setInfo ("image-url", imgInfo);        var size = getSize(imgInfo);        if (size != -1) {            var kbSize = size / 1024;            kbSize = Math.round(kbSize*100)/100;            setInfo("image-filesize", gMetadataBundle.getFormattedString("imageSize", [kbSize, size]));        } else {            setInfo("image-filesize", gMetadataBundle.getString("imageSizeUnknown"));        }        if ("width" in img && img.width != "") {            setInfo("image-width", gMetadataBundle.getFormattedString("imageWidth", [ img.width ]));            setInfo("image-height", gMetadataBundle.getFormattedString("imageHeight", [ img.height ]));        }        else {            setInfo("image-width", "");            setInfo("image-height", "");        }                         if (imgType == "img") {            setInfo("image-desc", getAbsoluteURL(img.longDesc, img));        } else {            setInfo("image-desc", "");        }                onImage = true;    }    if (!ismap) {       if (imgType == "img" || imgType == "input") {           setAlt(img);       } else {           hideNode("image-alt");       }    }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/f2d2579c73ff0869b93155f793a467759fd6d0c4/metadata.js/buggy/xpfe/browser/resources/content/metadata.js