Re: FF3, Greasemonkey and SVG
- I think I narrowed down the problem, excluding Greasemonkey from the equation. The
following pages render SVG in Safari and FF2, but not in FF3.
I've reported this to bugzilla.mozilla.org (bug #438867). I hope someone fixes this before
--- In email@example.com, Christian Pekeler <christian@...> wrote:
> I'm using the Firefox plugin Greasemonkey to render SVG on top of
> pages. The code I'm using is like this
> var SVG_NS = "http://www.w3.org/2000/svg";
> var XLINK_NS = "http://www.w3.org/1999/xlink";
> var svgNode = document.createElementNS(SVG_NS, 'svg');
> svgNode.style.position = 'absolute';
> svgNode.style.left = '10px';
> svgNode.style.top = '10px';
> svgNode.style.zIndex = '2000000';
> var image = document.createElementNS(SVG_NS, "image");
> image.setAttribute('width', '276');
> image.setAttribute('height', '110');
> image.setAttributeNS(XLINK_NS, 'href', "http://www.google.com/logos/logo.gif
> This has been working fine in FF2 on all pages.
> With the various betas and release candidates of FF3, it only works on
> a small number of pages, and I don't see what the difference between
> those pages are. Pages that work:
> Pages that don't work:
> There's no error message. The SVG actually ends up in the DOM
> (according to Firebug), it just doesn't seem to get rendered.
> I'm guessing this may have something to do with Greasemonkey, because
> if I make a local copy of google.com's HTML, manually add the code
> that draws the svg, and open it with FF3, it works fine. However,
> since this used to work in FF2, it must be due to some SVG related
> changes in FF3.
> Any help would be greatly appreciated!