HTML DOM normalize() Method

Document Object Reference Document Object

Example

Normalize a document:

document.normalize();

Try it yourself »


Definition and Usage

The normalize() method removes empty Text nodes, and joins adjacent Text nodes.


Browser Support

Method
normalize() Yes Yes Yes Yes Yes


Syntax

document.normalize()

Parameters

None

Technical Details

Return Value: No return value
DOM Version Core Level 2 Document Object


Related Pages

HTML DOM Reference: node.normalize()


Document Object Reference Document Object


Color Picker

colorpicker