HTML DOM normalize()Method

Document 对象参考手册Document Object

Example

Normalize a document:

document.normalize();

Try it Yourself »

Definition and Usage

The normalize method merges adjacent text nodes and removes empty text nodes.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the normalize method.


Syntax

node.normalize()

Parameters

None.

Return Value

No return value.

Technical Details

DOM Version Core Level 2 Node Object


Document 对象参考手册Document Object

Other Extensions