DekGenius.com
Team LiB   Previous Section   Next Section
Node.normalize( ) merge adjacent Text nodes and remove empty ones

Availability

DOM Level 1 Core

Synopsis

void normalize(  );

Description

This method traverses all descendants of this node and "normalizes" the document by removing any empty Text nodes and merging all adjacent Text nodes into a single node. This can sometimes be useful to simplify the tree structure after node insertions or deletions.

See Also

Text

    Team LiB   Previous Section   Next Section