Skip to content

Commit

Permalink
Issue 5486 (Hovering values of other attributes of an <img> shows the
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianZ committed May 20, 2012
1 parent e24671d commit f57114d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions extension/content/firebug/html/htmlPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f57114d

Please sign in to comment.