getContainerLength

Type: Function

Deprecated!

Use XPath/XQuery to do this. Refer to the examples page for an example on how to do this.

Return the maximum offset for any DOM position under the given node.

For CharacterData nodes, this is the length of the data. For other nodes this is the number of children.

Refer to domQuery for more information on how to import and use this function.

Arguments

  1. node

    (Required)

    Type: Node

    The node for which to determine the length

Returns

Type: Number

The length of the given node