HTML DOM normalizeDocument()Method

Document 对象参考手册Document Object

Examples

Normalize a document:

document.normalizeDocument();

Definition and Usage

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

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


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Currently, no mainstream browser supports the normalizeDocument() method


Syntax

document.normalizeDocument()

Parameters

None.

Return Value

No return value.

Technical Details

DOM Version Core Level 3


Document 对象参考手册Document Object

Other Extensions