diff --git a/suite/browser/pageInfo.js b/suite/browser/pageInfo.js
index 52f19a442580..f2ccdfac57ba 100644
--- a/suite/browser/pageInfo.js
+++ b/suite/browser/pageInfo.js
@@ -279,7 +279,10 @@ function grabAllForms(aWindow, aDocument)
}
}
- return theList.concat(aDocument.forms);
+ if ("forms" in aDocument)
+ return theList.concat(aDocument.forms);
+ else
+ return theList.concat(aDocument.getElementsByTagNameNS(XHTMLNS, "form"));
}
function onFormSelect()
@@ -460,7 +463,10 @@ function grabAllLinks(aWindow,aDocument)
if (inputList[i].type.toLowerCase() == "submit")
theList = theList.concat(inputList[i]);
- return theList.concat(aDocument.links);
+ if ("links" in aDocument)
+ return theList.concat(aDocument.links);
+ else
+ return theList.concat(aDocument.getElementsByTagNameNS(XHTMLNS, "a");
}
function openURL(target)
@@ -552,7 +558,10 @@ function grabAllMedia(aWindow, aDocument)
if(linkList[i].rel.match(/\bicon\b/i))
theList = theList.concat(linkList[i]);
- return theList.concat(aDocument.images);
+ if ("images" in aDocument)
+ return theList.concat(aDocument.images);
+ else
+ return theList.concat(aDocument.getElementsByTagNameNS(XHTMLNS, "img"));
}
function onImageSelect()
@@ -658,8 +667,11 @@ function makePreview(item)
//document.getElementById("imageplugintext").value = "--";
//document.getElementById("imagecharsettext").value = "--";
- document.getElementById("imagewidth").value = ("width" in item && item.width) || unknown;
- document.getElementById("imageheight").value = ("height" in item && item.height) || unknown;
+ var width = ("width" in item && item.width) || "";
+ var height = ("height" in item && item.height) || "";
+
+ document.getElementById("imagewidth").value = theBundle.getFormattedString("mediaWidth", [width]);
+ document.getElementById("imageheight").value = theBundle.getFormattedString("mediaHeight", [height]);
// also can't be done at the moment
//document.getElementById("imageencryptiontext").value = "--";
diff --git a/suite/browser/pageInfo.xul b/suite/browser/pageInfo.xul
index aeebbdb2dced..08cc89642f01 100644
--- a/suite/browser/pageInfo.xul
+++ b/suite/browser/pageInfo.xul
@@ -301,9 +301,7 @@
-
-
diff --git a/suite/locales/en-US/chrome/browser/pageInfo.dtd b/suite/locales/en-US/chrome/browser/pageInfo.dtd
index 52d15c792852..b7866a9d4278 100644
--- a/suite/locales/en-US/chrome/browser/pageInfo.dtd
+++ b/suite/locales/en-US/chrome/browser/pageInfo.dtd
@@ -86,8 +86,6 @@
-
-
diff --git a/suite/locales/en-US/chrome/browser/pageInfo.properties b/suite/locales/en-US/chrome/browser/pageInfo.properties
index 7e6edc8a3558..269e6de49b8b 100644
--- a/suite/locales/en-US/chrome/browser/pageInfo.properties
+++ b/suite/locales/en-US/chrome/browser/pageInfo.properties
@@ -56,6 +56,8 @@ mediaObject=Object
mediaEmbed=Embed
mediaLink=Icon
mediaInput=Input
+mediaWidth=Width: %Spx
+mediaHeight=Height: %Spx
generalNotCached=(not cached)
generalDiskCache=Disk Cache