> BM> But the memory leak problem was already there before I used
> BM> JDK1.4.1 (If I were the only one with that problem I would say it
> BM> is my fault. Well, maybe it is mine anyway :-)
> >> >> Does the subtree being removed involve 'svg' elements?
> >> 
> BM> No. Only <g>, <text>, <rect> and <use>.
> 
> >>  Does the use reference a symbol?
> 
> BM> No, the <use> references <image>s which are defined within the
> BM> <defs> section. Each image is usually referenced by more than one
> BM> <use> element.  
> 
>     What do the image element's reference?  SVG or raster?

Raster only (PNG).

 
> BM> I do change the contents of the <text> elements quite often
> BM> (i.e. the text to be displayed). Like this:
> 
> BM>   var text = document.getElementById("someText");
> BM> text.getFirstChild().setData("new text");
> 
>     It is possible that this also causes problems, but I'm trying to
> track down a potential problem with SVG viewports.

Is it better to create a new node with

  var textNode = document.createTextNode("some new text");

remove the old one and then insert the new one, instead of using setData()?


Thanks,

Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to