Bug 481509 - broken instanceof checks in pageInfo.js; r+sr=neil
authorKrang <bugzilla@technodrome.com>
Sun, 15 Mar 2009 14:34:08 +0100
changeset 2217 4b60f4ade2cab6c30cfcc9b202adc46957f6cf38
parent 2216 4f655b86410f2758df09b4a35bb6a0c0f1335043
child 2218 3096bf930f589594270d951a0e791eabb1420b8f
push idunknown
push userunknown
push dateunknown
bugs481509
Bug 481509 - broken instanceof checks in pageInfo.js; r+sr=neil
suite/browser/pageinfo/pageInfo.js
--- a/suite/browser/pageinfo/pageInfo.js
+++ b/suite/browser/pageinfo/pageInfo.js
@@ -868,23 +868,23 @@ function makePreview(row)
   var col = imageTree.columns["image-address"];
   var url = gImageView.getCellText(row, col);
   // image-bg
   var isBG = gImageView.data[row][COL_IMAGE_BG];
 
   setItemValue("imageurltext", url);
 
   if (item.hasAttribute("title") &&
-      !item instanceof SVGImageElement)
+      !(item instanceof SVGImageElement))
     setItemValue("imagetitletext", item.title);
   else
     setItemValue("imagetitletext", null);
 
   if (item.hasAttribute("longDesc") &&
-      !item instanceof SVGImageElement)
+      !(item instanceof SVGImageElement))
     setItemValue("imagelongdesctext", item.longDesc);
   else
     setItemValue("imagelongdesctext", null);
 
   if (item instanceof SVGImageElement)
     setItemValue("imagealttext", null);
   else if (item.hasAttribute("alt"))
     setItemValue("imagealttext", item.alt);