- I've been trying to draw a simple shape in an html page using
the html, viewable in IE. I haven't been able to do it.
The closest I've come is having an svg document:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
<svg width="300px" height="300px" id="svgdoc" version="1.1"
embed element for IE that references the file with it's data and src
attributes respectively and append them to the DOM. In FF, I can
access the svg tag in the svg file and append to it any children I
want to create using the DOM's appendChild and setAttribute functions.
I can't get it to work in IE however. I can get a reference to the
svg document in IE like so:
but the problem starts here. I can't get IE to recognize any
childNodes. FF will easily return the number of svg child nodes in
the document but IE always returns 0.
So... does anyone have any pearls of wisdom about how to create svg