Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…s clicked- is fixed
  • Loading branch information...
commit e9d4e2c1492bd04cacaace8122ed527943189d50 1 parent b25e8d2
Farshid Beheshti authored August 09, 2012
9  extension/content/firebug/html/htmlPanel.js
@@ -2266,14 +2266,19 @@ AttributeEditor.prototype = domplate(Firebug.InlineEditor.prototype,
2266 2266
 
2267 2267
     getInitialValue: function(target, value)
2268 2268
     {
2269  
-        if(value == "")
  2269
+        if (value == "")
2270 2270
             return value;
2271 2271
         var element = Firebug.getRepObject(target);
2272  
-            if(element && element instanceof window.Element)
  2272
+        if (element && element instanceof window.Element)
  2273
+        {
  2274
+            // If object that was clicked to edit was
  2275
+            // attribute value, not attribute name.
  2276
+            if (Css.hasClass(target, "nodeValue"))
2273 2277
             {
2274 2278
                 var attributeName = Dom.getPreviousByClass(target, "nodeName").textContent;
2275 2279
                 return element.getAttribute(attributeName);
2276 2280
             }
  2281
+        }
2277 2282
         return value;
2278 2283
     }
2279 2284
 });

0 notes on commit e9d4e2c

Please sign in to comment.
Something went wrong with that request. Please try again.