[Pkg-mozext-commits] [firebug] 27/55: Fix HTML tooltip (do not try to display namespace if it isn't available)

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


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

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

commit 63ffe0ac7847ec992fcdd492db0f98286965ac7d
Author: Jan Odvarko <odvarko at gmail.com>
Date:   Fri Jul 20 13:05:15 2012 +0200

    Fix HTML tooltip (do not try to display namespace if it isn't available)
---
 extension/content/firebug/chrome/reps.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/extension/content/firebug/chrome/reps.js b/extension/content/firebug/chrome/reps.js
index b17bd97..8e34005 100644
--- a/extension/content/firebug/chrome/reps.js
+++ b/extension/content/firebug/chrome/reps.js
@@ -1101,7 +1101,12 @@ FirebugReps.Element = domplate(Firebug.Rep,
 
     getTooltip: function(elt)
     {
-        return this.getXPath(elt) + " (" + elt.namespaceURI+")";
+        var tooltip = this.getXPath(elt);
+
+        if (elt.namespaceURI)
+            tooltip += " (" + elt.namespaceURI + ")";
+
+        return tooltip;
     },
 
     getContextMenuItems: function(elt, target, context)

-- 
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