POV-Ray : Newsgroups : povray.off-topic : Something silly : Re: Something silly Server Time
5 Sep 2024 17:18:27 EDT (-0400)
  Re: Something silly  
From: Nicolas Alvarez
Date: 18 Jun 2009 13:26:37
Message: <4a3a78cd@news.povray.org>
Invisible wrote:
> Invisible wrote:
>> Well, this is pretty silly...
> 
> And now I'm wondering... can you insert SVG directly into an HTML
> document?

No, only in an <object> tag referencing an external URL with the SVG.

However, in XHTML you can just put a <svg> tag with the appropriate
namespace in the middle of the document.

https://developer.mozilla.org/presentations/xtech2005/svg-canvas/SVGDemo.xml

> Can you use JavaScript to programmatically generate it? Hmm... 

Yes: document.createElementNS("http://www.w3.org/2000/svg", "svg")

SVG has its own DOM, but I don't know if any browser supports it:
http://www.w3.org/TR/SVG/svgdom.html


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.