xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McCormack <...@mail.csse.monash.edu.au>
Subject Events on used object don't fire
Date Thu, 11 Sep 2003 08:13:53 GMT
Hi.

With this test document:

  <svg xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400">
  
    <defs>
      <rect id="a" width="50" height="50" fill="red"
        onclick="window.alert('hi')"/>
    </defs>
  
    <use xlink:href="#a" x="100" y="100"/>
  
    <rect x="20" y="20" width="50" height="50" fill="blue"
      onclick="window.alert('lo')"/>
  </svg>

I find that the used rect (the red one) doesn't have its onclick event
fired, while the blue one does.  Is this a bug?  If this has already
been fixed in CVS (I'm using a month or so old copy) can someone point
me to which bit of code fixed it?  If it hasn't been fixed, any hints on
which part of the code needs modification?

Thanks,

Cameron

-- 
Cameron McCormack
  // clm@csse.monash.edu.au
  // http://www.csse.monash.edu.au/~clm/
  // icq 26955922


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message