W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2003

Re: DOMAttributeNameChanged

From: Philippe Le Hegaret <plh@w3.org>
Date: 20 Jun 2003 17:20:38 -0400
To: Sigurd Lerstad <sigler@bredband.no>
Cc: WWW DOM <www-dom@w3.org>
Message-Id: <1056144037.5844.229.camel@jfouffa.w3.org>

On Wed, 2002-10-09 at 16:37, Sigurd Lerstad wrote:
> Events 3.0:
> 
> >From spec:
> -----------
> DOMAttributeNameChanged
> 
> Fired after the namespaceURI and/or the nodeName of a Attr node have been
> modified (e.g., the attribute was renamed using renameNode). The target of
> this event is the renamed attribute.
> -------------
> 
> shouldn't the target be the element that contains the attr, and relatedNode
> be the attr?
> how can bubbling etc. work if the target is the attribute, since the
> attribute isn't part of the tree..

You are correct. This has been fixed in the new version:
http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/events.html#Events-EventTypes-complete
http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/events.html#Events-MutationEvent

Philippe
Received on Friday, 20 June 2003 17:20:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:57 GMT