L3 Core: "this", "reference" and 'given" nodes muddled in description of compareDocumentPosition and related constants

 From returns of compareDocumentPosition:

    Returns how the given node is positioned relatively to this node
    (i.e., "the reference node").

 From constants:

    DOCUMENT_POSITION_FOLLOWING: The node follows the reference node.

The first sentence would indicate that "this node" and "reference node" 
are synonyms.  However, the second sentence expects "the node" to be 
distinct from "reference node".

I'd recommend using "this node" (the node on which the method is 
invoked) and "other node" (the node passed as a parameter) and remove 
mentions of "given" and "reference" nodes in this context.  Like:

Returns how the other node is positioned relative to the node on which 
the method is invoked.

DOCUMENT_POSITION_FOLLOWING: The other node follows this node.

Received on Wednesday, 7 January 2004 01:29:58 UTC