DOMText.ReplaceWholeText

Syntax:

ReplaceWholeText(<Data>)

Parameters:

<Data> (required)

Type: String.
New text.

Returned value:

Type: DOMText; Undefined.
Undefined, if the replacing text is empty. The created node:
  • This node, if it is not read-only.;
  • A new text node of the same type.

Description:

Replaces text for the node and logically adjacent text nodes. All logically adjacent text nodes, including this node, are deleted. A new text node with a matching type is created, it is assigned new text and is inserted in the document tree instead this node.

Availability:

Server, thick client, external connection, Mobile application (server).

Note:

Exception reasons:

    

1C:Enterprise Developer's Community