W3C home > Mailing lists > Public > www-svg@w3.org > July 2003

Modifying attributes which are not designated as animatable

From: Cameron McCormack <clm@csse.monash.edu.au>
Date: Fri, 11 Jul 2003 16:16:28 +1000
To: www-svg@w3.org
Message-ID: <20030711061628.GA7496@jade.bpa.nu>

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?


  <svg xmlns="http://www.w3.org/2000/svg" width="400" height="400">
      function f() {
        var a = document.getElementById("a");
        a.setAttributeNS(null, "systemLangauge", "zh");
    <rect x="10" y="10" width="20" height="20" fill="red" stroke="black"
        stroke-width="3" onclick="f()"/>
    <g font-size="24pt">
        <text id="a" systemLanguage="en" x="100" y="200">first</text>
        <text x="100" y="200">default</text>

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



Cameron McCormack
  // clm@csse.monash.edu.au
  // http://www.csse.monash.edu.au/~clm/
  // icq 26955922
Received on Friday, 11 July 2003 02:16:35 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:56 UTC