W3C home > Mailing lists > Public > public-webapi@w3.org > March 2006

Re: ACTION-24: Attribute mutation events

From: Jonas Sicking <jonas@sicking.cc>
Date: Sat, 25 Mar 2006 12:58:19 -0800
Message-ID: <4425AEEB.3010509@sicking.cc>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: Web APIs WG <public-webapi@w3.org>

Bjoern Hoehrmann wrote:
> * Jonas Sicking wrote:
> 
>>When changing the prefix of an attribute, we currently unset the 
>>attribute and then reset it with a different prefix. Both the removing 
>>and setting will send out a mutation event. However, I'm not very happy 
>>with this behaviour and I don't think this is what the spec should 
>>replicate (and I plan to fix this in future versions of moz).
>>What would make most sense is to just send out a single event when the 
>>old and the new value is the same, or not send out an event at all. I 
>>don't have a strong preference.
> 
> 
> As in http://lists.w3.org/Archives/Public/www-dom/2005OctDec/0117 my
> current thinking is that changing .prefix also changes .nodeName and
> you'd then get a DOMAttributeNameChanged event.

Ah, yes, that would make sense.

/ Jonas
Received on Saturday, 25 March 2006 20:58:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:54 GMT