canInsertBefore method
Determines whether the Node.insertBefore operation would make this document not compliant with the VAL_INCOMPLETE validity type.
canInsertBefore(newChild [, refChild] )
Parameters
Node newChild
Node to be inserted.
Node refChild
[optional] Reference Node.
Returns
unsigned short. A validation state constant.
这对您有帮助吗?