Latest web development tutorials

HTML DOM normalize method

Document Object Reference Document Object

Examples

A document specification:

document.normalize();

try it"

Definition and Usage

The method normalize Merges adjacent text nodes and eliminates empty text nodes.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support normalize method


grammar

node.normalize()

parameter

None.

return value

No return value.

technical details

DOM version Core Level 2 Node Object


Document Object Reference Document Object