Synopsis
Traverses the subtree of the current Element
, combining adjacent Text
nodes into a single node.
Tip
This method was moved to the Node
interface as part of the DOM
Level 2 specification. It is still accessible from the Element
interface, as it inherits from
the Node
interface.
Java binding
public void normalize( );
Java example
// Merge all adjacent text nodes below this element
elem.normalize( );