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

Re: ACTION-24: Attribute mutation events

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 25 Mar 2006 21:42:26 +0100
To: Jonas Sicking <jonas@sicking.cc>
Cc: Web APIs WG <public-webapi@w3.org>
Message-ID: <qkab22pqh7fm5k4auf1bvrjl5kvnatr13f@hive.bjoern.hoehrmann.de>

* 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.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Saturday, 25 March 2006 20:42:23 GMT

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