Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Issue 5841: Short tag of element rep treats class=" a" as hav…

…ing a class """

It was meant for master only.
  • Loading branch information...
commit b7ecd246cd77562381d731aea34e665ef348070b 1 parent 3af1eb2
@simonlindholm simonlindholm authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 extension/content/firebug/chrome/reps.js
View
8 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)
Please sign in to comment.
Something went wrong with that request. Please try again.