Programmer's Guide > Interfaces > W3C CharacterDataEditVAL interface > canReplaceData method
  
canReplaceData method
Determines if character data can be replaced.
canReplaceData(offset, count, arg)
Parameters
unsigned longoffset
Offset.
unsigned longcount
Replacement.
Stringarg
Argument to be set.
Returns
unsigned short. A validation state constant.
Throws
DOMException
INDEX_SIZE_ERR: Raised if the specified offset is negative or greater than the number of 16-bit units in data, or if the specified count is negative.