W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2002

IsEqualNode() and normalization

From: Christopher Aillon <caillon@netscape.com>
Date: Wed, 07 Aug 2002 01:38:02 -0700
Message-ID: <3D50DC6A.9090309@netscape.com>
To: www-dom@w3.org

On the most recent DOM 3 Core working draft, fourth bullet point for 
isEqualNode states that "normalization can affect equality; to avoid 
this, nodes should be normalized before being compared." 
<http://www.w3.org/TR/2002/WD-DOM-Level-3-Core-20020409/core.html#Node3-isEqualNode>

However, the draft does not say who should do the normalization.  One 
would expect the user to be responsible for this before calling 
isEqualNode(), but the way it is written makes it sound as if the 
implementation should do the normalization, since the note about 
normalization is thrown into the section on what the implementation 
should check when testing for node equality, in addition to not 
explicitly stating who should be responsible for the normalization.

A clarification of this would be much appreciated.



Christopher Aillon
Netscape Communications Corp.
Received on Wednesday, 7 August 2002 04:38:55 GMT

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