Element.normalize() (Method)

Processes all of the textNode objects that are children of the receiving element and prepares the document for save and restore.

Availability:

DOM level - 1
JavaScript - 1.5
Netscape - 6.0
JavaScript syntax:NElement.normalize()

There are implications here for the way CDATASection objects are handled and are most likely to be used when XPointer lookups are required.

This begins to move in the direction of XML support, which the DOM actively facilitates and which is a very large and complicated topic. For now we shall concentrate on HTML documents.