Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit f57114d486b8eba0f7e265c9a4e1890ae6ab7a96 1 parent e24671d
@SebastianZ SebastianZ authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 extension/content/firebug/html/htmlPanel.js
View
13 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;
Please sign in to comment.
Something went wrong with that request. Please try again.