[Pkg-mozext-commits] [firexpath] 09/18: Issue5 make sure we remove the class attribute after removing the highlight class name from a node.

David Prévot taffit at moszumanska.debian.org
Sat Mar 26 19:35:47 UTC 2016


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

taffit pushed a commit to tag FirePath-0.9.5
in repository firexpath.

commit df629137ed9043900fe774946db2d20f1506911a
Author: pierre.tholence <pierre.tholence at gmail.com>
Date:   Sun Sep 5 12:32:28 2010 +0000

    Issue5 make sure we remove the class attribute after removing the highlight class name from a node.
---
 content/XPathPanel.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/content/XPathPanel.js b/content/XPathPanel.js
index 6035e2c..f702266 100644
--- a/content/XPathPanel.js
+++ b/content/XPathPanel.js
@@ -1763,7 +1763,7 @@ Firebug.XPathPanel.ResultHighlightModule = extend(Firebug.Module,
 		var element;
 		while(element = this.highlightedElement.pop()) {
 			removeClass(element, "firexpath-matching-node");
-			if (element.className.length === 0) {
+			if (element.className === '' || (element.className && element.className.trim().length === 0)) {
 				element.removeAttribute("class");
 			}
 		}

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



More information about the Pkg-mozext-commits mailing list