[Webkit-unassigned] [Bug 41421] Node.cloneNode does not work on SVG nodes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jul 3 00:38:46 PDT 2010


--- Comment #9 from Nikolas Zimmermann <zimmermann at kde.org>  2010-07-03 00:38:46 PST ---
N(In reply to comment #8)
> (In reply to comment #7)
> > If you grep for "updateAnimatedSVGAttribute" in WebCore/dom, you should see how it works, and how to hook that logic into cloneNode. Do you want to give it a try?
> Niko, the way this should work is that Element::cloneElementWithoutChildren calls attributes(true), then Element::attributes calls updateAnimatedSVGAttribute. Why isn’t that working?

Didn't investigate yet. I only know a workaround, that proves it's related to the synchronization:
If you insert " alert(ellipse1.getAttribute("cx"));" before cloning the ellipse, it works as expected.

I'll check soon what's going on.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list