[Pkg-mozext-commits] [firexpath] 10/51: 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
Sun Mar 22 15:08:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firexpath.
commit ef138d652257ae0b9fbe76334faff1c6671ab5b2
Author: pierre.tholence at gmail.com <pierre.tholence at gmail.com@dfa30af4-1965-11df-8728-136f2c2ca76e>
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.
git-svn-id: http://firepath.googlecode.com/svn/trunk@13 dfa30af4-1965-11df-8728-136f2c2ca76e
---
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