rem: if ("width" in img) { setInfo("image-width", img.width); setInfo("image-height", img.height); 
add: if ("width" in img && img.width != "") { setInfo("image-width", gMetadataBundle.getFormattedString("imageWidth", [ img.width ])); setInfo("image-height", gMetadataBundle.getFormattedString("imageHeight", [ img.height ])); 
context: function checkForImage(elem, htmllocalname){    var img;    var imgType;   // "img" = <img>                   // "object" = <object>                   // "input" = <input type=image>                   // "background" = css background (to be added later)    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;        while (map && map.nodeType == Node.ELEMENT_NODE && !isHTMLElement(map,"map") )            map = map.parentNode;        if (map && map.nodeType == Node.ELEMENT_NODE)            img = getImageForMap(map);    }    if (img) {        setInfo("image-url", img.src);        var size = getSize(img.src);        if (size != -1) {            var kbSize = size / 1024;            kbSize = Math.round(kbSize*100)/100;            setInfo("image-filesize", gMetadataBundle.getFormattedString("imageSize", [kbSize, size]));        }        if ("width" in img) {            setInfo("image-width", img.width);            setInfo("image-height", 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;    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ec0d74f988f3c84d2ca413dfef8ea15dcf0a086b/metadata.js/buggy/xpfe/browser/resources/content/metadata.js