--- In [email protected], T Rowley <[EMAIL PROTECTED]> wrote:
> 
> That will have poor performance in Firefox due to they way we 
currently 
> implement <use>, which is to do an anonymous clone of the indicated 
> subtree at the point of the <use>.  Any modifications to the 
original 
> content cause us to reclone the content.  As you're setting an 
attribute 
> on each <rect> inside the original content, we end up doing a lot 
of 
> work that other implementations might avoid.
>

Thanks for the clarification.  I spent a lot of time diagnosing this 
one.

I amended my code by changing the href attribute before and after the 
loop.  (I had to add an id attribute to the <use> element with a 
value of "useit".)  This seems to alleviate the performance lag.

Simon

i.e.

    var u = document.getElementById('useit');
    u.setAttributeNS
("http://www.w3.org/1999/xlink","xlink:href","#group1";);

    while(elm=colR.item(i++)){
        elm.setAttributeNS(null,'y',elm.getAttributeNS
('http://www.foo.com','y2'));
    }

    u.setAttributeNS
("http://www.w3.org/1999/xlink","xlink:href","#group";);


    }




-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to