![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Well, this is pretty silly...
Post a reply to this message
Attachments:
Download 'us-ascii' (2 KB)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Invisible wrote:
> Well, this is pretty silly...
And now I'm wondering... can you insert SVG directly into an HTML
document? Can you use JavaScript to programmatically generate it? Hmm...
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On Tue, 16 Jun 2009 12:45:10 +0100, Invisible wrote:
> Invisible wrote:
>> Well, this is pretty silly...
>
> And now I'm wondering... can you insert SVG directly into an HTML
> document? Can you use JavaScript to programmatically generate it? Hmm...
Some browsers apparently do support SVG natively. ISTR that Firefox
does...
Jim
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/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) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Nicolas Alvarez wrote:
> SVG has its own DOM, but I don't know if any browser supports it:
That's one of the cool things about W3C standards. They make up all these
"standards" that absolutely nobody supports at all, and then wonder why
they're unworkable.
--
Darren New, San Diego CA, USA (PST)
Insanity is a small city on the western
border of the State of Mind.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |