W3C home > Mailing lists > Public > www-svg@w3.org > January 2006

Re: SVGT 1.2: dynamic changes to <handler> elements

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Thu, 05 Jan 2006 15:32:03 -0600
Message-ID: <43BD9053.8040806@mit.edu>
To: Jim Ley <jim@jibbering.com>
CC: www-svg@w3.org

Jim Ley wrote:
> "Maciej Stachowiak" <mjs@apple.com> wrote in message 
> news:342DB765-C2C1-4F74-BCB3-423572ED3DE5@apple.com...
>> * Removing a <handler> element doesn't remove the corresponding event 
>> handler on its observer.
>> * Inserting a <handler> element doesn't add an event handler on its 
>> observer unless this happens as part of parsing.
>> * Changing the text contents of even an inline handler element  doesn't 
>> change what happens when the event fires.
>> All of these seem counter-intuitive, contrary to how the <listener> 
>> element works, and contrary to how "onfoo" style inline event  attributes 
>> work.
> Er, this is exactly equivalent to how on ofoo inline events work I would 
> say.

Jim, I'm not sure I follow.  Changing the onclick attribute of an HTML node 
certainly affects what happens when the click event fires.  Removing the onclick 
attribute removes the click listener.  Adding an onclick attribute via the DOM 
adds an click listener.  So I'm not sure what "exactly equivalent" means in your 
message.  What am I missing?

Received on Thursday, 5 January 2006 21:32:20 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:06 UTC