normalize (DOMNode - JavaScript)

Puts all text nodes under a node, including attribute nodes, into a normal form where only structure (for example, elements, comments, processing instructions, CDATA sections, and entity references) separates text nodes. That is, there are neither adjacent nor empty text nodes.

Defined in

DOMNode

Syntax

normalize() : void