Discussion:
[OU] SVG in XHTML with innerHTML through Javascript
Andre "Osku" Schmidt
2010-04-01 16:00:09 UTC
Permalink
hello,

i'm placing svg with javascript (innerhtml) in a xhtml document. works
in chromium and firefox. and opera seems to add it in the dom, but
doesn't display it.

here's a test case:
http://osku.de/post/add-svg-with-js.xhtml

and here's a screenshot how it looks here:
Loading Image...

as the (with innerhtml) inserted svg is exactly the same as in the
inline svg, i was wondering doesn't opera allow adding svg with
innerhtml ? or is it a bug ? (didn't find any on the tracker)

cheers
.andre

ps. this is on ubuntu 9.10, 64bit, Opera 10.10. but i also tried 10.50
in wine, same behaviour.

Loading...