Permalink
Browse files

Re-applied patch for issue 5303 (Display of Style side panel

fails for invalid character in string), which got lost when moving to
git
http://code.google.com/p/fbug/issues/detail?id=5303
  • Loading branch information...
1 parent 6992457 commit 7a44bcd987cf0e3cf0f38caaa3241598704c85ea @SebastianZ SebastianZ committed with janodvarko Mar 14, 2012
Showing with 12 additions and 2 deletions.
  1. +12 −2 extension/content/firebug/css/cssElementPanel.js
@@ -210,8 +210,18 @@ CSSElementPanel.prototype = Obj.extend(CSSStyleSheetPanel.prototype,
markOverriddenProps: function(element, props, usedProps, inheritMode)
{
- var dummyElement = element.ownerDocument.createElementNS(
- element.namespaceURI, element.tagName);
+ // Element can contain an invalid name (see issue 5303)
+ try
+ {
+ var dummyElement = element.ownerDocument.createElementNS(
+ element.namespaceURI, element.tagName);
+ }
+ catch (err)
+ {
+ if (FBTrace.DBG_ERRORS)
+ FBTrace.sysout("css.markOverriddenProps:", err);
+ return;
+ }
for (var i=0; i<props.length; i++)
{

0 comments on commit 7a44bcd

Please sign in to comment.