DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=34030>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34030 ------- Additional Comments From [EMAIL PROTECTED] 2005-03-16 14:41 ------- Seems like batik only supports dom level 2 and not dom level 1..... The following example works <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svgdoc" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <script type="text/ecmascript"> <![CDATA[ function testFunction() { var testObj = document.getElementById("test"); var newElem = document.createElementNS("http://www.w3.org/2000/svg","text"); newElem.appendChild(document.createTextNode("tester")); newElem.setAttributeNS(null,"x","150"); newElem.setAttributeNS(null,"y","150"); testObj.appendChild(newElem); } ]]> </script> <rect x="30" y="30" width="40" height="40" onclick="testFunction()" /> <g id="test"> <text x="10" y="10" id="test3">test2</text> </g> </svg> -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
