Permalink
Browse files

Fix HTML tooltip (do not try to display namespace if it isn't available)

  • Loading branch information...
janodvarko committed Jul 20, 2012
1 parent c8651e7 commit 63ffe0ac7847ec992fcdd492db0f98286965ac7d
Showing with 6 additions and 1 deletion.
  1. +6 −1 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)

0 comments on commit 63ffe0a

Please sign in to comment.