开发者

SVG animations' .beginElement() won't start in inserted SVG DOM in WebKit

I'm adding SVG with开发者_C百科 this code:

$.get("/media/widgets/animation1/test.svg", {}, function(data, status, xhr) {
    var node = document.adoptNode(data.documentElement);
    $("#test").append(node);
});

XHR automatically recognized the mime type from the HTTP header so it gives me the XML Document. The image itself renders fine, but not any single animation declared by <animateTransform> or <animate> won't start, despite the fact that these element are parsed and inserted in the SVG DOM. My app is XHTML and the main <svg> element is properly namespaced.

I've also tried the DOMParser to create the DOM from string, but this throws errors for me.

EDIT: I've added .beginElement() call on all <animate...> elements, but with no results in WebKit (the browser I need).

EDIT: It works fine in Firefox 4 Beta 11.


beginelement is not implemented in webkit yet. See https://lists.webkit.org/pipermail/webkit-unassigned/2010-September/245485.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜