|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |