canReplaceChild method
Determines whether the Node.replaceChild operation would make this document not compliant with the VAL_INCOMPLETE validity type.
canReplaceChild(newChild, oldChild)
Parameters
Node newChild
New Node.
Node oldChild
Node to be replaced.
Returns
unsigned short. A validation state constant.
这对您有帮助吗?