Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM normalizeDocument() method

HTML DOM normalizeDocument() method

Document Object Reference Document Object

Example

Normalize an entity document:

document.normalizeDocument();


Definition and Usage

The normalizeDocument() method can remove empty text nodes and merge adjacent nodes.

Currently no major browser supports the normalizeDocument() method, but a similar method can be used normalize() method.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Currently no major browser supports the normalizeDocument() method


Syntax

document.normalizeDocument()

Parameters

None.

Return Value

No value is returned.

Technical Details

DOM version Core Level 3

Document Object Reference Document Object