[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_DOM' (#lazutils)

TDOMCharacterData.SetNodeValue

Sets the value for the NodeValue property.

Declaration

Source position: laz2_dom.pas line 425

protected procedure TDOMCharacterData.SetNodeValue(

  const AValue: DOMString

); override;

Arguments

AValue

  

Value for the NodeValue property.

Description

SetNodeValue is an overridden method in TDOMCharacterData used to set the value for the NodeValue property.

SetNodeValue calls the Changing method to ensure that the node does not have the read-only attribute in its Flags property, or the OwnerDocument is not being freed. Either situation causes an EDOMError exception to raised.

SetNodeValue sets the internal member for the property to the specified value.

Errors

Raises an EDOMError exception if the node is marked as read-only, or the OwnerDocument for the node is being destroyed.

See also

TDOMNode.NodeValue

  

Value for the DOM node.

TDOMNode.Changing

  

Determines if the Node and its owner document can be modified.

EDOMError

  

Base class for exceptions raised in DOM interface classes.


Version 4.0 Generated 2025-05-03 Home