HTML DOM normalize() method
Example
Normalize a document:
document.normalize();
Try it »
Definition and Usage
The normalize method merges adjacent text nodes and removes empty text nodes.
Browser support





All major browsers support the normalize method
Syntax
node
.normalize()
Parameters
None.
Return Value
No value is returned.
Technical Details
| DOM version | Core Level 2 Node Object |
|---|
Document Object