om.DomNode.removeAttribute

Delete the specified attribute from the DOM node.

Syntax

removeAttribute(
   name STRING )
  RETURNING result STRING
  1. name is the name of the attribute.

Usage

The removeAttribute() method deletes the attribute identified by the name passed as parameter.

DOM node attribute names are case-sensitive.

If the attribute does not exist for this node the method returns silently.

Example

DEFINE node om.DomNode
...
CALL node.removeAttribute("comments")