Re: DOMAttributeNameChanged

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 UTC