W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2005

DOM3 Events: range of DOMAttrModified modifications

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 17 Dec 2005 17:44:53 +0100
To: www-dom@w3.org
Message-ID: <2of8q112qcrn59k47v90uf7qs4p6i90aa9@hive.bjoern.hoehrmann.de>


  http://www.w3.org/TR/2003/NOTE-DOM-Level-3-Events-20031107/ defines
DOMAttrModified as follows:

  Occurs after an Attr has been modified on a node. The target node of
  this event is the parent Element node whose Attr changed. It is
  expected that string based replacement of an Attr value will be viewed
  as a modification of the Attr since its identity does not change.
  Subsequently replacement of the Attr node with a different Attr node
  is viewed as the removal of the first Attr node and the addition of
  the second.

It's not clear from the document what qualifies as an Attr modification
and what does not. It is not clear whether changing e.g. Attr.prefix
would trigger the event, or more importantly, whether changing the isId
attribute through setIdAttribute et al would trigger it. Other cases
would include e.setAttributeNS(null, 'x', e.getAttributeNS(null, 'x'))
which would not modify the value but the .specified attribute (if it had
a defaulted value before the call).

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, 17 December 2005 16:44:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:12 UTC