Permalink
Browse files

Issue 5486 (Hovering values of other attributes of an <img> shows the

  • Loading branch information...
SebastianZ committed May 20, 2012
1 parent e24671d commit f57114d486b8eba0f7e265c9a4e1890ae6ab7a96
Showing with 9 additions and 4 deletions.
  1. +9 −4 extension/content/firebug/html/htmlPanel.js
@@ -1648,11 +1648,16 @@ Firebug.HTMLPanel.prototype = Obj.extend(WalkingPanel,
if (!Css.hasClass(target, "nodeValue"))
return;
- var targetNode = Firebug.getRepObject(target);
- if (targetNode && targetNode.nodeType == 1 && targetNode.localName.toUpperCase() == "IMG")
+ var attribute = Dom.getAncestorByClass(target, "nodeAttr");
+ var nodeName = attribute.getElementsByClassName("nodeName").item(0).textContent;
+
+ var node = Firebug.getRepObject(target);
+ if (node && node.nodeType == 1 && node.localName.toUpperCase() == "IMG" && nodeName == "src")
{
- var url = targetNode.src;
- if (url == this.infoTipURL) // This state cleared in hide()
+ var url = node.src;
+
+ // This state cleared in hide()
+ if (url == this.infoTipURL)
return true;
this.infoTipURL = url;

0 comments on commit f57114d

Please sign in to comment.