The phrase: Node created by Document needs clarification

Methods: appendChild, insertBefore etc.
     WRONG_DOCUMENT_ERR: Raised if newChild was created
     from a different document than the one that created this node.

Does it explicitly  mean that  the following condition:
(parentNode.ownerDocument  == newChild.ownerDocument)
is the ONLY condition that proves  that  parent and child node were created
from the same  document.

In other words, may it be any other hidden conditions that do not belong to
the www.w3.org DOM Level 2 specification
but the concrete implementation of DOM uses to check whether a newChild was in
fact created from this Document

For example:
XERCES 1.2 and 2.0 demands that newChild  was an instance of the class
NodeImpl, otherwise
newChild can not be appended to the parent node even if
parentNode.getOwnerDocument()  == newChild.getOwnerDocument()

Is it correct in terms of DOM specification?

Thank you,
Sergey Smirnov
ssmirnov@marketswitch.com
snsmirnov@hotmail.com

Received on Wednesday, 29 August 2001 12:38:10 UTC