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

Re: DOM3 erratum?

From: Cameron McCormack <cam-www-dom@aka.mcc.id.au>
Date: Fri, 29 Apr 2005 12:43:31 +1000
To: www-dom@w3.org
Message-ID: <20050429024331.GH5248@port.mcc.id.au>

Hi Joe.

Joe Kesselman (yes, the address is real):
> I can't seem to find an authoritative definition of the value returned 
> by Node.compareDocumentPosition. "Returns how the node is positioned 
> relatively to the reference node". I believe we intended this to be a 
> Fortran-style tristate comparison (<0, 0, >0), but that isn't nailed 
> down, nor does this state explicitly whether <0 means this node is 
> before other or other is before this.

I think the section describing the DocumentPosition values explains the
return value:


Though the prose for Node.compareDocumentPosition doesn't actually
refer to that.


  e-mail : cam (at) mcc.id.au    	icq : 26955922
     web : http://mcc.id.au/	        msn : cam-msn (at) aka.mcc.id.au
  office : +61399055779		     jabber : heycam (at) jabber.org
Received on Friday, 29 April 2005 02:43:42 UTC

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