[Pkg-mozext-commits] [firebug] 18/28: Revert "Revert "Issue 5841: Short tag of element rep treats class=" a" as having a class """"

David Prévot taffit at moszumanska.debian.org
Mon Mar 31 22:46:25 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag firebug-1.10.3
in repository firebug.

commit 92799ebf9444f601f5fe59f1e3f3b6a4704e298e
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date:   Tue Aug 28 19:57:04 2012 +0200

    Revert "Revert "Issue 5841: Short tag of element rep treats class=" a" as having a class """"
    
    http://code.google.com/p/fbug/issues/detail?id=5841
---
 extension/content/firebug/chrome/reps.js | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/extension/content/firebug/chrome/reps.js b/extension/content/firebug/chrome/reps.js
index 8e34005..02d8dc3 100644
--- a/extension/content/firebug/chrome/reps.js
+++ b/extension/content/firebug/chrome/reps.js
@@ -671,7 +671,7 @@ FirebugReps.Arr = domplate(Firebug.Rep,
 
     highlightObject: function(object, context, target)
     {
-        // Highlighting huge amount of elements on the page can cause sericous performance
+        // Highlighting huge amount of elements on the page can cause serious performance
         // problems (see issue 4736). So, avoid highlighting if the number of elements in
         // the array exceeds specified limit.
         var arr = this.getRealObject(object, context);
@@ -910,14 +910,12 @@ FirebugReps.Element = domplate(Firebug.Rep,
     {
         try
         {
-            return elt.getAttribute("class")
-                ? ("." + elt.getAttribute("class").split(" ")[0])
-                : "";
+            return elt.classList.length > 0 ? ("." + elt.classList[0]) : "";
         }
         catch (err)
         {
+            return "";
         }
-        return "";
     },
 
     getValue: function(elt)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git



More information about the Pkg-mozext-commits mailing list