org.w3c.dom.Node.setUserData
method

    public setUserData(key as String, data as Object, handler as UserDataHandler) as Object

Description

Associates application data with this node.

Parameters

Parameter | Description
--- | ---
`key` | User data key.
`data` | User data value, or null to clear.
`handler` | Optional operation callback.

Returns

Previous value, or null.

Example

    node.setUserData("source", "generated", null)