Programmer's Guide > Interfaces > W3C NodeEditVAL interface > canInsertBefore method
  
canInsertBefore method
Determines whether the Node.insertBefore operation would make this document not compliant with the VAL_INCOMPLETE validity type.
canInsertBefore(newChild [, refChild] )
Parameters
NodenewChild
Node to be inserted.
NoderefChild
[optional] Reference Node.
Returns
unsigned short. A validation state constant.