Packagedom.validation
Interfacepublic interface CharacterDataEditVAL extends NodeEditVAL

Introduced in: DOM 3 Validation 

When validating CharacterData nodes, the NodeEditVAL.nodeValidity operation must find the nearest parent node in order to do this; if no parent node is found, VAL_UNKNOWN is returned. In addition, when VAL_INCOMPLETE is passed in as an argument to the NodeEditVAL.nodeValidity operation to operate on such nodes, the operation considers all the text and not just some of it.

An object implementing this interface must also implement CharacterData interface.

See also

W3C - CharacterDataEditVAL


Public Properties
 PropertyDefined By
 InheritedDOM 3 Validation defaultValue : DOMString
[read-only] The default value specified in an attribute or an element declaration or null if unspecified.
NodeEditVAL
 InheritedDOM 3 Validation enumeratedValues : DOMStringList
[read-only] A DOMStringList, as described in DOM Level 3 Core, of distinct values for an attribute or an element declaration or null if unspecified.
NodeEditVAL
Public Methods
 MethodDefined By
 Inherited
DOM 3 Validation canAppendChild(newChild:Node):Number
Determines whether the Node.appendChild operation would make this document not compliant with the VAL_INCOMPLETE validity type.
NodeEditVAL
  
DOM 3 Validation canAppendData(arg:DOMString):Number
Determines if character data can be appended.
CharacterDataEditVAL
  
DOM 3 Validation canDeleteData(offset:Number, count:Number):Number
Determines if character data can be deleted.
CharacterDataEditVAL
 Inherited
DOM 3 Validation canInsertBefore(newChild:Node, refChild:Node):Number
Determines whether the Node.insertBefore operation would make this document not compliant with the VAL_INCOMPLETE validity type.
NodeEditVAL
  
DOM 3 Validation canInsertData(offset:Number, arg:DOMString):Number
Determines if character data can be inserted.
CharacterDataEditVAL
 Inherited
DOM 3 Validation canRemoveChild(oldChild:Node):Number
Determines whether the Node.removeChild operation would make this document not compliant with the VAL_INCOMPLETE validity type.
NodeEditVAL
 Inherited
DOM 3 Validation canReplaceChild(newChild:Node, oldChild:Node):Number
Determines whether the Node.replaceChild operation would make this document not compliant with the VAL_INCOMPLETE validity type.
NodeEditVAL
  
DOM 3 Validation canReplaceData(offset:Number, count:Number, arg:DOMString):Number
Determines if character data can be replaced.
CharacterDataEditVAL
  
DOM 3 Validation canSetData(arg:DOMString):Number
Determines if character data can be set.
CharacterDataEditVAL
  
DOM 3 Validation isWhitespaceOnly():Number
Determines if character data is only whitespace.
CharacterDataEditVAL
 Inherited
DOM 3 Validation nodeValidity(valType:Number):Number
Determines if the node is valid relative to the validation type specified in valType.
NodeEditVAL
Method Detail
DOM 3 Validation canAppendData()method
public function canAppendData(arg:DOMString):Number

Introduced in: DOM 3 Validation 

Determines if character data can be appended.

Parameters

arg:DOMString — Data to be appended.

Returns
Number — A validation state constant.

See also

DOM 3 Validation canDeleteData()method 
public function canDeleteData(offset:Number, count:Number):Number

Introduced in: DOM 3 Validation 

Determines if character data can be deleted.

Parameters

offset:Number — Offset.
 
count:Number — Number of 16-bit units to delete.

Returns
Number — 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.

See also

DOM 3 Validation canInsertData()method 
public function canInsertData(offset:Number, arg:DOMString):Number

Introduced in: DOM 3 Validation 

Determines if character data can be inserted.

Parameters

offset:Number — Offset.
 
arg:DOMString — Argument to be set.

Returns
Number — 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.

See also

DOM 3 Validation canReplaceData()method 
public function canReplaceData(offset:Number, count:Number, arg:DOMString):Number

Introduced in: DOM 3 Validation 

Determines if character data can be replaced.

Parameters

offset:Number — Offset.
 
count:Number — Replacement.
 
arg:DOMString — Argument to be set.

Returns
Number — 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.

See also

DOM 3 Validation canSetData()method 
public function canSetData(arg:DOMString):Number

Introduced in: DOM 3 Validation 

Determines if character data can be set.

Parameters

arg:DOMString — Argument to be set.

Returns
Number — A validation state constant.

See also

DOM 3 Validation isWhitespaceOnly()method 
public function isWhitespaceOnly():Number

Introduced in: DOM 3 Validation 

Determines if character data is only whitespace.

Returns
Number — A validation state constant.

See also