[Pkg-mozext-commits] [firebug] 16/28: 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 b7ecd246cd77562381d731aea34e665ef348070b
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date: Mon Aug 20 19:21:01 2012 +0200
Revert "Issue 5841: Short tag of element rep treats class=" a" as having a class """
It was meant for master only.
---
extension/content/firebug/chrome/reps.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/extension/content/firebug/chrome/reps.js b/extension/content/firebug/chrome/reps.js
index 02d8dc3..8e34005 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 serious performance
+ // Highlighting huge amount of elements on the page can cause sericous 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,12 +910,14 @@ FirebugReps.Element = domplate(Firebug.Rep,
{
try
{
- return elt.classList.length > 0 ? ("." + elt.classList[0]) : "";
+ return elt.getAttribute("class")
+ ? ("." + elt.getAttribute("class").split(" ")[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