snapshot_item method

snapshot_item

Returns the indexth item in the snapshot collection. If index is greater than or equal to the number of nodes in the list, this method returns null. Unlike the iterator result, the snapshot does not become invalid, but may not correspond to the current document if it is mutated.

Returns

The node at the indexth position in the NodeList, or null if that is not a valid index.

def snapshot_item(self, index):
    ...
ParameterTypeDescription
indexintIndex into the snapshot collection.

Exceptions

ExceptionDescription
DOMExceptionTYPE_ERR: raised if resultType is not
UnorderedNodeSnapshot type or OrderedNodeSnapshot type.

See Also