Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

the side effected bug- Opening editor but empty when attribute name i…

…s clicked- is fixed
  • Loading branch information...
commit e9d4e2c1492bd04cacaace8122ed527943189d50 1 parent b25e8d2
@farshidbeheshti farshidbeheshti authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 extension/content/firebug/html/htmlPanel.js
View
9 extension/content/firebug/html/htmlPanel.js
@@ -2266,14 +2266,19 @@ AttributeEditor.prototype = domplate(Firebug.InlineEditor.prototype,
getInitialValue: function(target, value)
{
- if(value == "")
+ if (value == "")
return value;
var element = Firebug.getRepObject(target);
- if(element && element instanceof window.Element)
+ if (element && element instanceof window.Element)
+ {
+ // If object that was clicked to edit was
+ // attribute value, not attribute name.
+ if (Css.hasClass(target, "nodeValue"))
{
var attributeName = Dom.getPreviousByClass(target, "nodeName").textContent;
return element.getAttribute(attributeName);
}
+ }
return value;
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.