Latest web development tutorials
 

HTML DOM normalize() Method

< 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