Latest web development tutorials

HTML DOM normalizeDocument () method

Document Object Reference Document Object

Examples

An entity document specification:

document.normalizeDocument();

Definition and Usage

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

There is no major browsers support normalizeDocument () method, but you can use a similar method normalize () method.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Currently there is no way the major browsers support normalizeDocument ()


grammar

document.normalizeDocument()

parameter

None.

return value

No return value.

technical details

DOM version Core Level 3


Document Object Reference Document Object