If I have an SVG document in which I use script to change an attribute which is not animatable, should the change be reflected in rendering? Example: <svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"> <script><![CDATA[ function f() { var a = document.getElementById("a"); a.setAttributeNS(null, "systemLangauge", "zh"); } ]]></script> <rect x="10" y="10" width="20" height="20" fill="red" stroke="black" stroke-width="3" onclick="f()"/> <g font-size="24pt"> <switch> <text id="a" systemLanguage="en" x="100" y="200">first</text> <text x="100" y="200">default</text> </switch> </g> </svg> Clicking on the red rect will change the systemLanguage attribute of the first text in the switch from "en" to "zh". Assuming my user agent is set to English, after clicking on the rect the displayed text should change from "first" to "default". Is this the right behaviour? Or because the systemLanguage attribute is not animatable, can the browser ignore subsequent changes to that attribute? Thanks, Cameron -- Cameron McCormack // clm@csse.monash.edu.au // http://www.csse.monash.edu.au/~clm/ // icq 26955922Received on Friday, 11 July 2003 02:16:35 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 4 September 2006 18:11:23 GMT