THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM normalizeDocument() Method

Document Object Reference Document Object

Example

Normalize an entire document:

document.normalizeDocument();

Definition and Usage

The normalizeDocument() method removes empty Text nodes, and joins adjacent Text nodes.

This method is not supported in any browser, but should work similar to the normalize() method.


Browser Support

Method
normalizeDocument() Not supported Not supported Not supported Not supported Not supported

Syntax

document.normalizeDocument()

Parameters

None

Technical Details

Return Value: No return value
DOM Version Core Level 3 Document Object

Related Pages

HTML DOM Reference: document.normalize()

HTML DOM Reference: node.normalize()


Document Object Reference Document Object