HTMLDocument.RenameNode

Syntax:

RenameNode(<Node>, <QualifiedName>)

Parameters:

<Node> (required)

Type: HTMLAttribute; HTMLElement.
Renamed HTMLDOM node.

<QualifiedName> (required)

Type: String.
New qualified name of renamed node.

Returned value:

Type: DOMAttribute, DOMDocument, DOMElement, DOMDocumentType, DOMNotation, DOMEntity, DOMDocumentFragment, DOMText, DOMComment, DOMCDATASection, DOMProcessingInstruction, DOMEntityReference, XPathNamespace.

Description:

Renames Element and Attribute nodes.
Renaming of existing node is attempted; if it is impossible, a new node is created with a new name, prefix, replacing the original node.

Availability:

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

Note:

Exception call reasons:
  • Attempt to rename nodes other than Element or Attribute, or if the implementation does not support node renaming;
  • Qualified name contains characters invalid for XML standard of this document;
  • Attempt to rename a node created by another HTML document;
  • Qualified name contains prefix with a value invalid for this namespace URI value.

    

1C:Enterprise Developer's Community